package com.wicket.okrfinance.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrcalc.integration.dto.*;
import com.wicket.okrcalc.integration.dto.AnalysisDyncAllocateDatasetLastRecordComReqDto;
import com.wicket.okrcalc.integration.dto.AnalysisDyncAllocateDatasetLastRecordComRespDto;
import com.wicket.okrcalc.integration.dto.BusinessDataSetDto;
import com.wicket.okrcalc.integration.dto.RedisBusinessDataResDto;
import com.wicket.okrcalc.integration.dto.SumOfMultipleNumDto;
import com.wicket.okrcomponent.integration.FwCompBusinessAtomClient;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrcomponent.integration.dto.*;
//import com.wicket.okrcomponent.integration.dto.RedisBusinessDataResDto;
import com.wicket.okrcomponent.integration.dto.DataSetsListOneDto;
import com.wicket.okrfinance.base.service.dto.req.*;
import com.wicket.okrfinance.biz.service.dto.common.*;
import com.wicket.okrfinance.biz.service.dto.common.AccountCapitalSourceDto;
import com.wicket.okrfinance.biz.service.dto.req.*;
import com.wicket.okrfinance.biz.service.dto.res.*;
import com.wicket.okrfinance.common.exception.BizException;
import com.wicket.okrfinance.common.util.CommonFunctionHelper;
import com.wicket.okrfinance.common.util.RedisUtil;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.wicket.okrfinance.base.service.MOmsAccountService;
import com.wicket.okrfinance.base.service.MOmsAccountCapitalSourceService;
import com.wicket.okrfinance.dal.po.mbg.OmsAccountCapitalSource;

import java.util.ArrayList;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrfinance.common.exception.Assert;
import com.wicket.okrfinance.biz.service.nb.NbFinance;
import com.wicket.okrfinance.dal.po.mbg.OmsAccount;
import com.wicket.okrfinance.base.service.MOmsBillService;
import com.wicket.okrfinance.dal.po.mbg.OmsBill;
import com.wicket.okrcomponent.integration.FwCompInterfaceModeClient;
import com.wicket.okrfinance.base.service.MOmsAccountSubjectService;
import com.wicket.okrfinance.dal.po.mbg.OmsAccountSubject;
import com.wicket.okrframework.integration.FwBaseBatchClient;
import com.wicket.okrframework.integration.dto.QueryInductionRecordInfoDetailComRespDto;
import com.wicket.okrframework.integration.dto.QueryInductionRecordInfoDetailComReqDto;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrframework.integration.dto.ImplementLifeCycleJudgmentComRespDto;
import com.wicket.okrframework.integration.dto.ImplementLifeCycleJudgmentComReqDto;

import java.util.Collections;

import com.wicket.okrcalc.integration.FwCalcCalculationRulesClient;
import com.wicket.okrfinance.base.service.MOmsTargetCostsetService;
import com.wicket.okrfinance.dal.po.mbg.OmsTargetCostset;
import com.wicket.okrcomponent.integration.FwCompFinanceClient;
import com.wicket.okrcalc.integration.FwCalcStandardDataClient;
import com.wicket.okrcomponent.integration.FwCompStandardDataClient;
import com.wicket.okrcalc.integration.FwCalcInterfaceModeClient;
import com.wicket.okrcalc.integration.FwCalcTargetCalcClient;
import com.wicket.okrcomponent.integration.FwCompBusinessInterfaceModeClient;
import com.wicket.okrcalc.integration.FwCalcBusinessAtomClient;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class FinanceServiceImpl
  implements com.wicket.okrfinance.biz.service.FinanceService {

  @Resource
  private RedisUtil redisUtil;
@Resource
  private MOmsAccountService mOmsAccountService;
@Resource
  private MOmsAccountCapitalSourceService mOmsAccountCapitalSourceService;
@Resource
  private NbFinance nbFinance;
@Resource
 private MOmsBillService mOmsBillService;
@Resource
  private FwCompInterfaceModeClient fwCompInterfaceModeClient;
@Resource
 private MOmsAccountSubjectService mOmsAccountSubjectService;
@Resource
  private FwBaseBatchClient fwBaseBatchClient;
@Resource
  private FwBaseInductionRecordClient fwBaseInductionRecordClient;
@Resource
  private FwCompConfSchemeClient fwCompConfSchemeClient;
@Resource
  private FwCalcCalculationRulesClient fwCalcCalculationRulesClient;
@Resource
 private MOmsTargetCostsetService mOmsTargetCostsetService;
@Resource
  private FwCompBusinessAtomClient fwCompBusinessAtomClient;
@Resource
  private FwCompFinanceClient fwCompFinanceClient;
@Resource
  private FwCalcStandardDataClient fwCalcStandardDataClient;
@Resource
  private FwCompStandardDataClient fwCompStandardDataClient;
@Resource
  private FwCalcInterfaceModeClient fwCalcInterfaceModeClient;
@Resource
  private FwCalcTargetCalcClient fwCalcTargetCalcClient;
@Resource
  private FwCompBusinessInterfaceModeClient fwCompBusinessInterfaceModeClient;
@Resource
  private FwCalcBusinessAtomClient fwCalcBusinessAtomClient;
//@Resource
//  private FwCompTemplateEngineClient fwCompTemplateEngineClient;
//@Resource
 //private undefinedService undefinedService;
/**
   * D7批量查财务资金来源(公共)[7665]
   * gen by moon at 11/26/2023, 6:30:16 PM
   */
  @Trace(operationName = "D7批量查财务资金来源(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public BatchQueryAccountCapitalSourceComRespDto batchQueryAccountCapitalSourceCom(BatchQueryAccountCapitalSourceComReqDto reqDto){
    
      
      List<OmsAccountCapitalSource> listOmsAccountCapitalSource_1 =new ArrayList<>();
//步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!=null){
      receptionServiceReq.setAccountCapitalSourceList(reqDto.getAccountCapitalSourceList());//list-field-assign//sourceId:1230988_1
    }
  
    /*M7接收入参字段[7656]  用于特殊方法接收上游入参。 */
    
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);
      
      
      
    
//步骤1: 7-1-05批量查询财务资金来源 - batchQueryAccountCapitalSource
     List<OmsAccountCapitalSource> listOmsAccountCapitalSource =new ArrayList<>();
    BatchQueryAccountCapitalSourceReq batchQueryAccountCapitalSourceReq=new BatchQueryAccountCapitalSourceReq();
  batchQueryAccountCapitalSourceReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1231426_1
batchQueryAccountCapitalSourceReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1231427_1
if(reqDto!=null){
      batchQueryAccountCapitalSourceReq.setAccountCapitalSourceList(reqDto.getAccountCapitalSourceList());//list-field-assign//sourceId:1231424_1
    }
  
    /*7-1-05批量查询财务资金来源[7667]   */
    Assert.isNull(batchQueryAccountCapitalSourceReq.getSubjectLifeCycle(),"D7批量查财务资金来源(公共)-7-1-05批量查询财务资金来源-主体生命周期不能为空",false);
Assert.isNull(batchQueryAccountCapitalSourceReq.getSpaceId(),"D7批量查财务资金来源(公共)-7-1-05批量查询财务资金来源-创建于空间ID不能为空",false);
      listOmsAccountCapitalSource = mOmsAccountCapitalSourceService.batchQueryAccountCapitalSource(batchQueryAccountCapitalSourceReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsAccountCapitalSource_1 = listOmsAccountCapitalSource;
    
BatchQueryAccountCapitalSourceComRespDto retData = new BatchQueryAccountCapitalSourceComRespDto();
  retData.setAccountCapitalSourceList(listOmsAccountCapitalSource_1.stream().map(item -> BeanUtil.toBean(item, AccountCapitalSourceDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1231430_1
  

  
  
return retData;
  }
/**
   * D7-查询资金账户详情(公共)[7681]
   * gen by moon at 3/8/2024, 3:47:05 AM
   */
  @Trace(operationName = "D7-查询资金账户详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryFinanceAccountDetailComRespDto queryFinanceAccountDetailCom(QueryFinanceAccountDetailComReqDto reqDto){
    
      
      OmsAccount omsAccount_1 =null;
//步骤0: 7-1-01-查询资金账户详情 - queryFinanceAccountDetailCom
     OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1234674_1
queryFinanceAccountDetailComReq.setAccountCode(reqDto.getAccountCode());//SimpleFieldAssign//sourceId:1234675_1
queryFinanceAccountDetailComReq.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1234676_1
queryFinanceAccountDetailComReq.setAccountStatus(reqDto.getAccountStatus());//SimpleFieldAssign//sourceId:1234660_1
queryFinanceAccountDetailComReq.setIsEndStatus(reqDto.getIsEndStatus());//SimpleFieldAssign//sourceId:1234661_1
queryFinanceAccountDetailComReq.setCertificationStatus(reqDto.getCertificationStatus());//SimpleFieldAssign//sourceId:1234662_1
queryFinanceAccountDetailComReq.setAccountTypeCode(reqDto.getAccountTypeCode());//SimpleFieldAssign//sourceId:1234663_1
queryFinanceAccountDetailComReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1234664_1
queryFinanceAccountDetailComReq.setIsStatisticalAccount(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1511539_1
queryFinanceAccountDetailComReq.setEcologicalAccountTypeCode(reqDto.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1234665_1
queryFinanceAccountDetailComReq.setIsIncomingAccount(reqDto.getIsIncomingAccount());//SimpleFieldAssign//sourceId:1565452_1
queryFinanceAccountDetailComReq.setAccountObjectClass(reqDto.getAccountObjectClass());//SimpleFieldAssign//sourceId:1234666_1
queryFinanceAccountDetailComReq.setDistributionSystemTypeCode(reqDto.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1234670_1
queryFinanceAccountDetailComReq.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1234671_1
queryFinanceAccountDetailComReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1234667_1
queryFinanceAccountDetailComReq.setAccountObjectTypeCode(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1234668_1
queryFinanceAccountDetailComReq.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1234669_1
queryFinanceAccountDetailComReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1565450_1
queryFinanceAccountDetailComReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1234672_1
queryFinanceAccountDetailComReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1234673_1
queryFinanceAccountDetailComReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1234840_1
    }
  
    /*7-1-01-查询资金账户详情[7677]   */

      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsAccount_1 = omsAccount;
    
QueryFinanceAccountDetailComRespDto retData = new QueryFinanceAccountDetailComRespDto();
  if(omsAccount_1!=null){
      retData.setAccountId(omsAccount_1.getAccountId());//SimpleFieldAssign//sourceId:1234694_1
retData.setAccountActualBalance(omsAccount_1.getAccountActualBalance());//SimpleFieldAssign//sourceId:1244070_1
retData.setSettlableBalance(omsAccount_1.getSettlableBalance());//SimpleFieldAssign//sourceId:1244071_1
retData.setUnSettlableBalance(omsAccount_1.getUnSettlableBalance());//SimpleFieldAssign//sourceId:1244072_1
retData.setAccruedSettledAmount(omsAccount_1.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:1244073_1
retData.setTotalBudgetAmount(omsAccount_1.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1244074_1
retData.setAccountObjectClass(omsAccount_1.getAccountObjectClass());//SimpleFieldAssign//sourceId:1562166_1
retData.setAccountObjectTypeCode(omsAccount_1.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1562167_1
retData.setAccountObjectId(omsAccount_1.getAccountObjectId());//SimpleFieldAssign//sourceId:1562168_1
retData.setRelSubBudgetAccountCode(omsAccount_1.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1562169_1
retData.setIsBudgetAccount(omsAccount_1.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1562249_1
retData.setIsStatisticalAccount(omsAccount_1.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1562250_1
retData.setIsIncomingAccount(omsAccount_1.getIsIncomingAccount());//SimpleFieldAssign//sourceId:1562251_1
    }
  

  
  
return retData;
  }
/**
   * 11111D7执行账户资金处理(公共)[7687]
   * gen by moon at 3/8/2024, 3:46:57 AM
   */
  @Trace(operationName = "11111D7执行账户资金处理(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementAccountFundHandleComRespDto implementAccountFundHandleCom(ImplementAccountFundHandleComReqDto reqDto){
    
      
      if((reqDto!= null&&  reqDto.getBillTypeCode() !=null && reqDto.getBillTypeCode().equals("INCOME"))) {
        //if(D7执行账户资金处理(公共).收支类型 等于 收入)  51786
        
if((reqDto!= null&&  reqDto.getAccountOptType() !=null && reqDto.getAccountOptType().equals("ADD_BUDGET"))) {
        //if(D7执行账户资金处理(公共).账户操作类型 等于 增预算)  51789
        
boolean bOOLEAN ;
    OmsAccount omsAccount=new OmsAccount();
  if(reqDto!=null){
      omsAccount.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1238132_1_51795
omsAccount.setTotalBudgetAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1238137_1_51795
    }
  
    /*7-1-01账户总金额自动加[7688]   */
    Assert.isNull(omsAccount.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户总金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount.getTotalBudgetAmount(),"11111D7执行账户资金处理(公共)-7-1-01账户总金额自动加-总金额不能为空",false);
      bOOLEAN = mOmsAccountService.updateAutoAddAccount(omsAccount)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_1 ;
    OmsAccount omsAccount_1=new OmsAccount();
  if(reqDto!=null){
      omsAccount_1.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239572_1_51796
omsAccount_1.setAccountActualBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239583_1_51796
    }
  
    /*7-1-01账户余额自动加[7688]   */
    Assert.isNull(omsAccount_1.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_1.getAccountActualBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动加-账户余额不能为空",false);
      bOOLEAN_1 = mOmsAccountService.updateAutoAddAccount(omsAccount_1)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_2 ;
    OmsAccount omsAccount_2=new OmsAccount();
  if(reqDto!=null){
      omsAccount_2.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239575_1_51797
omsAccount_2.setSettlableBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239584_1_51797
    }
  
    /*7-1-01账户可用金额自动加[7688]   */
    Assert.isNull(omsAccount_2.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_2.getSettlableBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动加-可用金额不能为空",false);
      bOOLEAN_2 = mOmsAccountService.updateAutoAddAccount(omsAccount_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
OmsAccount omsAccount_3 = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239498_1_51798
if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239497_1_51798
    }
  
    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-账户ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount_3 = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
String string = null;
    if(omsAccount_3 !=null){
          OmsBill omsBill=new OmsBill();
omsBill.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239163_1_51799
omsBill.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1239164_1_51799
if(reqDto!=null){
      omsBill.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239132_1_51799
omsBill.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1239134_1_51799
omsBill.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1239135_1_51799
omsBill.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1239136_1_51799
omsBill.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1239138_1_51799
omsBill.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1239143_1_51799
omsBill.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1239144_1_51799
omsBill.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1239145_1_51799
omsBill.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1239146_1_51799
omsBill.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1239147_1_51799
omsBill.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1239148_1_51799
omsBill.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1239149_1_51799
omsBill.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1239150_1_51799
omsBill.setOppositeOpeningBankName(reqDto.getOppositeOpeningBankName());//SimpleFieldAssign//sourceId:1239151_1_51799
omsBill.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1239152_1_51799
omsBill.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1239153_1_51799
omsBill.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1239154_1_51799
omsBill.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1239155_1_51799
omsBill.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1239156_1_51799
omsBill.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1239157_1_51799
omsBill.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1239133_1_51799
omsBill.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1239461_1_51799
omsBill.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1239462_1_51799
omsBill.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1239137_1_51799
omsBill.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1239162_1_51799
    }
if(omsAccount_3!=null){
      omsBill.setBillAccountId(omsAccount_3.getAccountId());//SimpleFieldAssign//sourceId:1239139_1_51799
omsBill.setBillAccountBalance(omsAccount_3.getAccountActualBalance());//SimpleFieldAssign//sourceId:1239140_1_51799
omsBill.setBillObjectId(omsAccount_3.getAccountObjectId());//SimpleFieldAssign//sourceId:1239141_1_51799
omsBill.setBillObjectTypeCode(omsAccount_3.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1239142_1_51799
omsBill.setEcologicalAccountTypeCode(omsAccount_3.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1239158_1_51799
omsBill.setDistributionSystemTypeCode(omsAccount_3.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1239159_1_51799
omsBill.setIsOrgOfficialAccountNom(omsAccount_3.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1239160_1_51799
omsBill.setDistributionAccountId(omsAccount_3.getDistributionAccountId());//SimpleFieldAssign//sourceId:1239161_1_51799
    }
  
    /*7-1-02新增资金账单（收入）[7693]   */
    Assert.isNull(omsBill.getBillAmount(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单金额不能为空",false);
Assert.isNull(omsBill.getBillTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-收支类型不能为空",false);
Assert.isNull(omsBill.getIsOriginBill(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-是否发生方账单不能为空",false);
Assert.isNull(omsBill.getIsButtFinance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-是否对接财务不能为空",false);
Assert.isNull(omsBill.getBillBizStory(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-流水业务故事信息不能为空",false);
Assert.isNull(omsBill.getBillAccountId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单归属账户ID不能为空",false);
Assert.isNull(omsBill.getBillAccountBalance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单归属账户余额不能为空",false);
Assert.isNull(omsBill.getBillObjectId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单归属账户主体ID不能为空",false);
Assert.isNull(omsBill.getBillObjectTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单归属账户主体类型编码不能为空",false);
Assert.isNull(omsBill.getBillMethod(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-收支方式不能为空",false);
Assert.isNull(omsBill.getBillStatus(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单状态不能为空",false);
Assert.isNull(omsBill.getEcologicalAccountTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-生态账户类型编码不能为空",false);
Assert.isNull(omsBill.getDistributionSystemTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-冗余发行体系类型编码不能为空",false);
Assert.isNull(omsBill.getIsOrgOfficialAccountNom(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-是否组织正式财务标准不能为空",false);
Assert.isNull(omsBill.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-创建于空间ID不能为空",false);
Assert.isNull(omsBill.getAppId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-创建于联盟应用ID不能为空",false);
      string = mOmsBillService.addFinanceBill(omsBill)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
      }
else if((reqDto!= null&&  reqDto.getAccountOptType() !=null && reqDto.getAccountOptType().equals("AVAILABLE_AMOUNT_INCOME"))){
       //elseif(D7执行账户资金处理(公共).账户操作类型 等于 可用金额收入)  51790
      
boolean bOOLEAN_3 ;
    OmsAccount omsAccount_5=new OmsAccount();
  if(reqDto!=null){
      omsAccount_5.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239575_1_51827
omsAccount_5.setSettlableBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239584_1_51827
    }
  
    /*7-1-01账户可用金额自动加[7688]   */
    Assert.isNull(omsAccount_5.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_5.getSettlableBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动加-可用金额不能为空",false);
      bOOLEAN_3 = mOmsAccountService.updateAutoAddAccount(omsAccount_5)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_4 ;
    OmsAccount omsAccount_6=new OmsAccount();
  if(reqDto!=null){
      omsAccount_6.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239572_1_51828
omsAccount_6.setAccountActualBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239583_1_51828
    }
  
    /*7-1-01账户余额自动加[7688]   */
    Assert.isNull(omsAccount_6.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_6.getAccountActualBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动加-账户余额不能为空",false);
      bOOLEAN_4 = mOmsAccountService.updateAutoAddAccount(omsAccount_6)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_5 ;
    OmsAccount omsAccount_7=new OmsAccount();
  if(reqDto!=null){
      omsAccount_7.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1238132_1_51800
omsAccount_7.setTotalBudgetAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1238137_1_51800
    }
  
    /*7-1-01账户总金额自动加[7688]   */
    Assert.isNull(omsAccount_7.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户总金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_7.getTotalBudgetAmount(),"11111D7执行账户资金处理(公共)-7-1-01账户总金额自动加-总金额不能为空",false);
      bOOLEAN_5 = mOmsAccountService.updateAutoAddAccount(omsAccount_7)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
OmsAccount omsAccount_8 = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq_1=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239498_1_51803
if(reqDto!=null){
      queryFinanceAccountDetailComReq_1.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239497_1_51803
    }
  
    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq_1.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-账户ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_1.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount_8 = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq_1)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
String string_2 = null;
    if(omsAccount_8 !=null){
          OmsBill omsBill_1=new OmsBill();
omsBill_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239163_1_51804
omsBill_1.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1239164_1_51804
if(reqDto!=null){
      omsBill_1.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239132_1_51804
omsBill_1.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1239134_1_51804
omsBill_1.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1239135_1_51804
omsBill_1.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1239136_1_51804
omsBill_1.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1239138_1_51804
omsBill_1.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1239143_1_51804
omsBill_1.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1239144_1_51804
omsBill_1.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1239145_1_51804
omsBill_1.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1239146_1_51804
omsBill_1.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1239147_1_51804
omsBill_1.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1239148_1_51804
omsBill_1.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1239149_1_51804
omsBill_1.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1239150_1_51804
omsBill_1.setOppositeOpeningBankName(reqDto.getOppositeOpeningBankName());//SimpleFieldAssign//sourceId:1239151_1_51804
omsBill_1.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1239152_1_51804
omsBill_1.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1239153_1_51804
omsBill_1.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1239154_1_51804
omsBill_1.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1239155_1_51804
omsBill_1.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1239156_1_51804
omsBill_1.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1239157_1_51804
omsBill_1.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1239133_1_51804
omsBill_1.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1239461_1_51804
omsBill_1.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1239462_1_51804
omsBill_1.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1239137_1_51804
omsBill_1.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1239162_1_51804
    }
if(omsAccount_8!=null){
      omsBill_1.setBillAccountId(omsAccount_8.getAccountId());//SimpleFieldAssign//sourceId:1239139_1_51804
omsBill_1.setBillAccountBalance(omsAccount_8.getAccountActualBalance());//SimpleFieldAssign//sourceId:1239140_1_51804
omsBill_1.setBillObjectId(omsAccount_8.getAccountObjectId());//SimpleFieldAssign//sourceId:1239141_1_51804
omsBill_1.setBillObjectTypeCode(omsAccount_8.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1239142_1_51804
omsBill_1.setEcologicalAccountTypeCode(omsAccount_8.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1239158_1_51804
omsBill_1.setDistributionSystemTypeCode(omsAccount_8.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1239159_1_51804
omsBill_1.setIsOrgOfficialAccountNom(omsAccount_8.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1239160_1_51804
omsBill_1.setDistributionAccountId(omsAccount_8.getDistributionAccountId());//SimpleFieldAssign//sourceId:1239161_1_51804
    }
  
    /*7-1-02新增资金账单（收入）[7693]   */
    Assert.isNull(omsBill_1.getBillAmount(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单金额不能为空",false);
Assert.isNull(omsBill_1.getBillTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-收支类型不能为空",false);
Assert.isNull(omsBill_1.getIsOriginBill(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-是否发生方账单不能为空",false);
Assert.isNull(omsBill_1.getIsButtFinance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-是否对接财务不能为空",false);
Assert.isNull(omsBill_1.getBillBizStory(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-流水业务故事信息不能为空",false);
Assert.isNull(omsBill_1.getBillAccountId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单归属账户ID不能为空",false);
Assert.isNull(omsBill_1.getBillAccountBalance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单归属账户余额不能为空",false);
Assert.isNull(omsBill_1.getBillObjectId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单归属账户主体ID不能为空",false);
Assert.isNull(omsBill_1.getBillObjectTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单归属账户主体类型编码不能为空",false);
Assert.isNull(omsBill_1.getBillMethod(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-收支方式不能为空",false);
Assert.isNull(omsBill_1.getBillStatus(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-账单状态不能为空",false);
Assert.isNull(omsBill_1.getEcologicalAccountTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-生态账户类型编码不能为空",false);
Assert.isNull(omsBill_1.getDistributionSystemTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-冗余发行体系类型编码不能为空",false);
Assert.isNull(omsBill_1.getIsOrgOfficialAccountNom(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-是否组织正式财务标准不能为空",false);
Assert.isNull(omsBill_1.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-创建于空间ID不能为空",false);
Assert.isNull(omsBill_1.getAppId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（收入）-创建于联盟应用ID不能为空",false);
      string_2 = mOmsBillService.addFinanceBill(omsBill_1)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
    }
      }
else if((reqDto!= null&&  reqDto.getBillTypeCode() !=null && reqDto.getBillTypeCode().equals("SPENDING"))){
       //elseif(D7执行账户资金处理(公共).收支类型 等于 支出)  51787
      
if((reqDto!= null&&  reqDto.getAccountOptType() !=null && reqDto.getAccountOptType().equals("DEC_BUDGET"))) {
        //if(D7执行账户资金处理(公共).账户操作类型 等于 减预算)  51792
        
boolean bOOLEAN_6 ;
    OmsAccount omsAccount_9=new OmsAccount();
  if(reqDto!=null){
      omsAccount_9.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1238138_1_51806
omsAccount_9.setTotalBudgetAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1238143_1_51806
    }
  
    /*7-1-01账户总金额自动减[7689]   */
    Assert.isNull(omsAccount_9.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户总金额自动减-账户ID不能为空",false);
Assert.isNull(omsAccount_9.getTotalBudgetAmount(),"11111D7执行账户资金处理(公共)-7-1-01账户总金额自动减-总金额不能为空",false);
      bOOLEAN_6 = mOmsAccountService.updateAutoSubAccount(omsAccount_9)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_7 ;
    OmsAccount omsAccount_10=new OmsAccount();
  if(reqDto!=null){
      omsAccount_10.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239578_1_51808
omsAccount_10.setAccountActualBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239585_1_51808
    }
  
    /*7-1-01账户余额自动减[7689]   */
    Assert.isNull(omsAccount_10.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动减-账户ID不能为空",false);
Assert.isNull(omsAccount_10.getAccountActualBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动减-账户余额不能为空",false);
      bOOLEAN_7 = mOmsAccountService.updateAutoSubAccount(omsAccount_10)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_8 ;
    OmsAccount omsAccount_11=new OmsAccount();
  if(reqDto!=null){
      omsAccount_11.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239579_1_51809
omsAccount_11.setSettlableBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239586_1_51809
    }
  
    /*7-1-01账户可用金额自动减[7689]   */
    Assert.isNull(omsAccount_11.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动减-账户ID不能为空",false);
Assert.isNull(omsAccount_11.getSettlableBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动减-可用金额不能为空",false);
      bOOLEAN_8 = mOmsAccountService.updateAutoSubAccount(omsAccount_11)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
OmsAccount omsAccount_12 = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq_2=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq_2.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239498_1_51810
if(reqDto!=null){
      queryFinanceAccountDetailComReq_2.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239497_1_51810
    }
  
    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq_2.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-账户ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_2.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount_12 = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
String string_3 = null;
    if(omsAccount_12 !=null){
          OmsBill omsBill_2=new OmsBill();
omsBill_2.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239451_1_51811
omsBill_2.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1239452_1_51811
if(reqDto!=null){
      omsBill_2.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239420_1_51811
omsBill_2.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1239422_1_51811
omsBill_2.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1239423_1_51811
omsBill_2.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1239424_1_51811
omsBill_2.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1239426_1_51811
omsBill_2.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1239431_1_51811
omsBill_2.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1239432_1_51811
omsBill_2.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1239433_1_51811
omsBill_2.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1239434_1_51811
omsBill_2.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1239435_1_51811
omsBill_2.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1239436_1_51811
omsBill_2.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1239437_1_51811
omsBill_2.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1239438_1_51811
omsBill_2.setOppositeOpeningBankName(reqDto.getOppositeOpeningBankName());//SimpleFieldAssign//sourceId:1239439_1_51811
omsBill_2.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1239440_1_51811
omsBill_2.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1239441_1_51811
omsBill_2.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1239442_1_51811
omsBill_2.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1239443_1_51811
omsBill_2.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1239444_1_51811
omsBill_2.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1239445_1_51811
omsBill_2.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1239421_1_51811
omsBill_2.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1239537_1_51811
omsBill_2.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1239538_1_51811
omsBill_2.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1239425_1_51811
omsBill_2.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1239450_1_51811
    }
if(omsAccount_12!=null){
      omsBill_2.setBillAccountBalance(omsAccount_12.getAccountActualBalance());//SimpleFieldAssign//sourceId:1239428_1_51811
omsBill_2.setBillAccountId(omsAccount_12.getAccountId());//SimpleFieldAssign//sourceId:1239427_1_51811
omsBill_2.setBillObjectId(omsAccount_12.getAccountObjectId());//SimpleFieldAssign//sourceId:1239429_1_51811
omsBill_2.setBillObjectTypeCode(omsAccount_12.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1239430_1_51811
omsBill_2.setEcologicalAccountTypeCode(omsAccount_12.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1239446_1_51811
omsBill_2.setDistributionSystemTypeCode(omsAccount_12.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1239447_1_51811
omsBill_2.setIsOrgOfficialAccountNom(omsAccount_12.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1239448_1_51811
omsBill_2.setDistributionAccountId(omsAccount_12.getDistributionAccountId());//SimpleFieldAssign//sourceId:1239449_1_51811
    }
  
    /*7-1-02新增资金账单（支出）[7693]   */
    Assert.isNull(omsBill_2.getBillAmount(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单金额不能为空",false);
Assert.isNull(omsBill_2.getBillAccountBalance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户余额不能为空",false);
Assert.isNull(omsBill_2.getBillTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-收支类型不能为空",false);
Assert.isNull(omsBill_2.getIsOriginBill(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否发生方账单不能为空",false);
Assert.isNull(omsBill_2.getIsButtFinance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否对接财务不能为空",false);
Assert.isNull(omsBill_2.getBillBizStory(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-流水业务故事信息不能为空",false);
Assert.isNull(omsBill_2.getBillAccountId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户ID不能为空",false);
Assert.isNull(omsBill_2.getBillObjectId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户主体ID不能为空",false);
Assert.isNull(omsBill_2.getBillObjectTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户主体类型编码不能为空",false);
Assert.isNull(omsBill_2.getBillMethod(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-收支方式不能为空",false);
Assert.isNull(omsBill_2.getBillStatus(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单状态不能为空",false);
Assert.isNull(omsBill_2.getEcologicalAccountTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-生态账户类型编码不能为空",false);
Assert.isNull(omsBill_2.getDistributionSystemTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-冗余发行体系类型编码不能为空",false);
Assert.isNull(omsBill_2.getIsOrgOfficialAccountNom(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否组织正式财务标准不能为空",false);
Assert.isNull(omsBill_2.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-创建于空间ID不能为空",false);
Assert.isNull(omsBill_2.getAppId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-创建于联盟应用ID不能为空",false);
      string_3 = mOmsBillService.addFinanceBill(omsBill_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
      }
else if((reqDto!= null&&  reqDto.getAccountOptType() !=null && reqDto.getAccountOptType().equals("USE_BUDGET"))){
       //elseif(D7执行账户资金处理(公共).账户操作类型 等于 使用预算)  51793
      
boolean bOOLEAN_9 ;
    OmsAccount omsAccount_13=new OmsAccount();
  if(reqDto!=null){
      omsAccount_13.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239579_1_51822
omsAccount_13.setSettlableBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239586_1_51822
    }
  
    /*7-1-01账户可用金额自动减[7689]   */
    Assert.isNull(omsAccount_13.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动减-账户ID不能为空",false);
Assert.isNull(omsAccount_13.getSettlableBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动减-可用金额不能为空",false);
      bOOLEAN_9 = mOmsAccountService.updateAutoSubAccount(omsAccount_13)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_10 ;
    OmsAccount omsAccount_14=new OmsAccount();
  if(reqDto!=null){
      omsAccount_14.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239578_1_54341
omsAccount_14.setAccountActualBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239585_1_54341
    }
  
    /*7-1-01账户余额自动减[7689]   */
    Assert.isNull(omsAccount_14.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动减-账户ID不能为空",false);
Assert.isNull(omsAccount_14.getAccountActualBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动减-账户余额不能为空",false);
      bOOLEAN_10 = mOmsAccountService.updateAutoSubAccount(omsAccount_14)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_11 ;
    OmsAccount omsAccount_15=new OmsAccount();
  if(reqDto!=null){
      omsAccount_15.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239580_1_51817
omsAccount_15.setAccruedSettledAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239582_1_51817
    }
  
    /*7-1-01账户累计结算金额自动加[7688]   */
    Assert.isNull(omsAccount_15.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户累计结算金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_15.getAccruedSettledAmount(),"11111D7执行账户资金处理(公共)-7-1-01账户累计结算金额自动加-累计结算金额不能为空",false);
      bOOLEAN_11 = mOmsAccountService.updateAutoAddAccount(omsAccount_15)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
OmsAccount omsAccount_16 = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq_3=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq_3.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239498_1_51820
if(reqDto!=null){
      queryFinanceAccountDetailComReq_3.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239497_1_51820
    }
  
    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq_3.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-账户ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_3.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount_16 = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq_3)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
String string_5 = null;
    if(omsAccount_16 !=null){
          OmsBill omsBill_3=new OmsBill();
omsBill_3.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239451_1_51821
omsBill_3.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1239452_1_51821
if(reqDto!=null){
      omsBill_3.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239420_1_51821
omsBill_3.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1239422_1_51821
omsBill_3.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1239423_1_51821
omsBill_3.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1239424_1_51821
omsBill_3.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1239426_1_51821
omsBill_3.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1239431_1_51821
omsBill_3.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1239432_1_51821
omsBill_3.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1239433_1_51821
omsBill_3.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1239434_1_51821
omsBill_3.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1239435_1_51821
omsBill_3.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1239436_1_51821
omsBill_3.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1239437_1_51821
omsBill_3.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1239438_1_51821
omsBill_3.setOppositeOpeningBankName(reqDto.getOppositeOpeningBankName());//SimpleFieldAssign//sourceId:1239439_1_51821
omsBill_3.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1239440_1_51821
omsBill_3.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1239441_1_51821
omsBill_3.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1239442_1_51821
omsBill_3.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1239443_1_51821
omsBill_3.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1239444_1_51821
omsBill_3.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1239445_1_51821
omsBill_3.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1239421_1_51821
omsBill_3.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1239537_1_51821
omsBill_3.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1239538_1_51821
omsBill_3.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1239425_1_51821
omsBill_3.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1239450_1_51821
    }
if(omsAccount_16!=null){
      omsBill_3.setBillAccountBalance(omsAccount_16.getAccountActualBalance());//SimpleFieldAssign//sourceId:1239428_1_51821
omsBill_3.setBillAccountId(omsAccount_16.getAccountId());//SimpleFieldAssign//sourceId:1239427_1_51821
omsBill_3.setBillObjectId(omsAccount_16.getAccountObjectId());//SimpleFieldAssign//sourceId:1239429_1_51821
omsBill_3.setBillObjectTypeCode(omsAccount_16.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1239430_1_51821
omsBill_3.setEcologicalAccountTypeCode(omsAccount_16.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1239446_1_51821
omsBill_3.setDistributionSystemTypeCode(omsAccount_16.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1239447_1_51821
omsBill_3.setIsOrgOfficialAccountNom(omsAccount_16.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1239448_1_51821
omsBill_3.setDistributionAccountId(omsAccount_16.getDistributionAccountId());//SimpleFieldAssign//sourceId:1239449_1_51821
    }
  
    /*7-1-02新增资金账单（支出）[7693]   */
    Assert.isNull(omsBill_3.getBillAmount(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单金额不能为空",false);
Assert.isNull(omsBill_3.getBillAccountBalance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户余额不能为空",false);
Assert.isNull(omsBill_3.getBillTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-收支类型不能为空",false);
Assert.isNull(omsBill_3.getIsOriginBill(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否发生方账单不能为空",false);
Assert.isNull(omsBill_3.getIsButtFinance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否对接财务不能为空",false);
Assert.isNull(omsBill_3.getBillBizStory(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-流水业务故事信息不能为空",false);
Assert.isNull(omsBill_3.getBillAccountId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户ID不能为空",false);
Assert.isNull(omsBill_3.getBillObjectId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户主体ID不能为空",false);
Assert.isNull(omsBill_3.getBillObjectTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户主体类型编码不能为空",false);
Assert.isNull(omsBill_3.getBillMethod(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-收支方式不能为空",false);
Assert.isNull(omsBill_3.getBillStatus(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单状态不能为空",false);
Assert.isNull(omsBill_3.getEcologicalAccountTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-生态账户类型编码不能为空",false);
Assert.isNull(omsBill_3.getDistributionSystemTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-冗余发行体系类型编码不能为空",false);
Assert.isNull(omsBill_3.getIsOrgOfficialAccountNom(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否组织正式财务标准不能为空",false);
Assert.isNull(omsBill_3.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-创建于空间ID不能为空",false);
Assert.isNull(omsBill_3.getAppId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-创建于联盟应用ID不能为空",false);
      string_5 = mOmsBillService.addFinanceBill(omsBill_3)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
    }
else if((reqDto!= null&&  reqDto.getAccountOptType() !=null && reqDto.getAccountOptType().equals("AVAILABLE_AMOUNT_EXPENDITURE"))){
       //elseif(D7执行账户资金处理(公共).账户操作类型 等于 可用金额支出)  51794
      
boolean bOOLEAN_12 ;
    OmsAccount omsAccount_17=new OmsAccount();
  if(reqDto!=null){
      omsAccount_17.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239579_1_51824
omsAccount_17.setSettlableBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239586_1_51824
    }
  
    /*7-1-01账户可用金额自动减[7689]   */
    Assert.isNull(omsAccount_17.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动减-账户ID不能为空",false);
Assert.isNull(omsAccount_17.getSettlableBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户可用金额自动减-可用金额不能为空",false);
      bOOLEAN_12 = mOmsAccountService.updateAutoSubAccount(omsAccount_17)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_13 ;
    OmsAccount omsAccount_18=new OmsAccount();
  if(reqDto!=null){
      omsAccount_18.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239578_1_51825
omsAccount_18.setAccountActualBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239585_1_51825
    }
  
    /*7-1-01账户余额自动减[7689]   */
    Assert.isNull(omsAccount_18.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动减-账户ID不能为空",false);
Assert.isNull(omsAccount_18.getAccountActualBalance(),"11111D7执行账户资金处理(公共)-7-1-01账户余额自动减-账户余额不能为空",false);
      bOOLEAN_13 = mOmsAccountService.updateAutoSubAccount(omsAccount_18)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
boolean bOOLEAN_14 ;
    OmsAccount omsAccount_19=new OmsAccount();
  if(reqDto!=null){
      omsAccount_19.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239580_1_51812
omsAccount_19.setAccruedSettledAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239582_1_51812
    }
  
    /*7-1-01账户累计结算金额自动加[7688]   */
    Assert.isNull(omsAccount_19.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01账户累计结算金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_19.getAccruedSettledAmount(),"11111D7执行账户资金处理(公共)-7-1-01账户累计结算金额自动加-累计结算金额不能为空",false);
      bOOLEAN_14 = mOmsAccountService.updateAutoAddAccount(omsAccount_19)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
OmsAccount omsAccount_20 = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq_4=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq_4.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239498_1_51815
if(reqDto!=null){
      queryFinanceAccountDetailComReq_4.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1239497_1_51815
    }
  
    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq_4.getAccountId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-账户ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_4.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount_20 = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq_4)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
String string_6 = null;
    if(omsAccount_20 !=null){
          OmsBill omsBill_4=new OmsBill();
omsBill_4.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1239451_1_51816
omsBill_4.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1239452_1_51816
if(reqDto!=null){
      omsBill_4.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1239420_1_51816
omsBill_4.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1239422_1_51816
omsBill_4.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1239423_1_51816
omsBill_4.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1239424_1_51816
omsBill_4.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1239426_1_51816
omsBill_4.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1239431_1_51816
omsBill_4.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1239432_1_51816
omsBill_4.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1239433_1_51816
omsBill_4.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1239434_1_51816
omsBill_4.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1239435_1_51816
omsBill_4.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1239436_1_51816
omsBill_4.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1239437_1_51816
omsBill_4.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1239438_1_51816
omsBill_4.setOppositeOpeningBankName(reqDto.getOppositeOpeningBankName());//SimpleFieldAssign//sourceId:1239439_1_51816
omsBill_4.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1239440_1_51816
omsBill_4.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1239441_1_51816
omsBill_4.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1239442_1_51816
omsBill_4.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1239443_1_51816
omsBill_4.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1239444_1_51816
omsBill_4.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1239445_1_51816
omsBill_4.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1239421_1_51816
omsBill_4.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1239537_1_51816
omsBill_4.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1239538_1_51816
omsBill_4.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1239425_1_51816
omsBill_4.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1239450_1_51816
    }
if(omsAccount_20!=null){
      omsBill_4.setBillAccountBalance(omsAccount_20.getAccountActualBalance());//SimpleFieldAssign//sourceId:1239428_1_51816
omsBill_4.setBillAccountId(omsAccount_20.getAccountId());//SimpleFieldAssign//sourceId:1239427_1_51816
omsBill_4.setBillObjectId(omsAccount_20.getAccountObjectId());//SimpleFieldAssign//sourceId:1239429_1_51816
omsBill_4.setBillObjectTypeCode(omsAccount_20.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1239430_1_51816
omsBill_4.setEcologicalAccountTypeCode(omsAccount_20.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1239446_1_51816
omsBill_4.setDistributionSystemTypeCode(omsAccount_20.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1239447_1_51816
omsBill_4.setIsOrgOfficialAccountNom(omsAccount_20.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1239448_1_51816
omsBill_4.setDistributionAccountId(omsAccount_20.getDistributionAccountId());//SimpleFieldAssign//sourceId:1239449_1_51816
    }
  
    /*7-1-02新增资金账单（支出）[7693]   */
    Assert.isNull(omsBill_4.getBillAmount(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单金额不能为空",false);
Assert.isNull(omsBill_4.getBillAccountBalance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户余额不能为空",false);
Assert.isNull(omsBill_4.getBillTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-收支类型不能为空",false);
Assert.isNull(omsBill_4.getIsOriginBill(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否发生方账单不能为空",false);
Assert.isNull(omsBill_4.getIsButtFinance(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否对接财务不能为空",false);
Assert.isNull(omsBill_4.getBillBizStory(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-流水业务故事信息不能为空",false);
Assert.isNull(omsBill_4.getBillAccountId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户ID不能为空",false);
Assert.isNull(omsBill_4.getBillObjectId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户主体ID不能为空",false);
Assert.isNull(omsBill_4.getBillObjectTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单归属账户主体类型编码不能为空",false);
Assert.isNull(omsBill_4.getBillMethod(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-收支方式不能为空",false);
Assert.isNull(omsBill_4.getBillStatus(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-账单状态不能为空",false);
Assert.isNull(omsBill_4.getEcologicalAccountTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-生态账户类型编码不能为空",false);
Assert.isNull(omsBill_4.getDistributionSystemTypeCode(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-冗余发行体系类型编码不能为空",false);
Assert.isNull(omsBill_4.getIsOrgOfficialAccountNom(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-是否组织正式财务标准不能为空",false);
Assert.isNull(omsBill_4.getSpaceId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-创建于空间ID不能为空",false);
Assert.isNull(omsBill_4.getAppId(),"11111D7执行账户资金处理(公共)-7-1-02新增资金账单（支出）-创建于联盟应用ID不能为空",false);
      string_6 = mOmsBillService.addFinanceBill(omsBill_4)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
    }
    }
ImplementAccountFundHandleComRespDto retData = new ImplementAccountFundHandleComRespDto();
  
  

  
  
return retData;
  }
/**
   * D7查规划使用预算资金来源列表[7683]
   * gen by moon at 11/5/2023, 1:33:25 AM
   */
  @Trace(operationName = "D7查规划使用预算资金来源列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryPlanUseBudgetAccountCapitalSourceListRespDto queryPlanUseBudgetAccountCapitalSourceList(QueryPlanUseBudgetAccountCapitalSourceListReqDto reqDto){
    
      
      List<OmsAccountCapitalSource> listOmsAccountCapitalSource_1 =new ArrayList<>();
//步骤0: 7-1-05批量查询财务资金来源 - batchQueryAccountCapitalSource
     List<OmsAccountCapitalSource> listOmsAccountCapitalSource =new ArrayList<>();
    BatchQueryAccountCapitalSourceReq batchQueryAccountCapitalSourceReq=new BatchQueryAccountCapitalSourceReq();
  batchQueryAccountCapitalSourceReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1236263_1
batchQueryAccountCapitalSourceReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1236262_1
if(reqDto!=null){
      batchQueryAccountCapitalSourceReq.setAccountCapitalSourceList(reqDto.getAccountCapitalSourceList());//list-field-assign//sourceId:1236260_1
    }
  
    /*7-1-05批量查询财务资金来源[7667]   */
    Assert.isNull(batchQueryAccountCapitalSourceReq.getSubjectLifeCycle(),"D7查规划使用预算资金来源列表-7-1-05批量查询财务资金来源-主体生命周期不能为空",false);
Assert.isNull(batchQueryAccountCapitalSourceReq.getSpaceId(),"D7查规划使用预算资金来源列表-7-1-05批量查询财务资金来源-创建于空间ID不能为空",false);
      listOmsAccountCapitalSource = mOmsAccountCapitalSourceService.batchQueryAccountCapitalSource(batchQueryAccountCapitalSourceReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsAccountCapitalSource_1 = listOmsAccountCapitalSource;
    
QueryPlanUseBudgetAccountCapitalSourceListRespDto retData = new QueryPlanUseBudgetAccountCapitalSourceListRespDto();
  retData.setPlanUseBudgetAccountCapitalSourceList(listOmsAccountCapitalSource_1.stream().map(item -> BeanUtil.toBean(item, PlanUseBudgetAccountCapitalSourceDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1236266_1
  

  
  
return retData;
  }
/**
   * D7执行初始化账户(公共)[7678]
   * gen by moon at 2/19/2024, 7:43:30 PM
   */
  @Trace(operationName = "D7执行初始化账户(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeFinanceAccountComRespDto implementInitializeFinanceAccountCom(ImplementInitializeFinanceAccountComReqDto reqDto){
    
      
      ImplementReceiveFieldInputRespDto receptionServiceRes_1 =null;
//virtualUsage 7-1-01-查询资金账户详情  51644
      OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1233458_1_51644
queryFinanceAccountDetailComReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1233455_1_51644
queryFinanceAccountDetailComReq.setIsStatisticalAccount(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1511546_1_51644
queryFinanceAccountDetailComReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1234901_1_51644
    }
  
    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountObjectId(),"D7执行初始化账户(公共)-7-1-01-查询资金账户详情-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsBudgetAccount(),"D7执行初始化账户(公共)-7-1-01-查询资金账户详情-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsStatisticalAccount(),"D7执行初始化账户(公共)-7-1-01-查询资金账户详情-是否统计账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSpaceId(),"D7执行初始化账户(公共)-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
if((omsAccount == null )) {
        //if(7-1-1-查询资金账户详情(公共).出参 值等于空 )  51645
        
String string = null;
    OmsAccount omsAccount_2=new OmsAccount();
  if(reqDto!=null){
      omsAccount_2.setAccountCode(reqDto.getAccountCode());//SimpleFieldAssign//sourceId:1233641_1_51649
omsAccount_2.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1233643_1_51649
omsAccount_2.setCertificationStatus(reqDto.getCertificationStatus());//SimpleFieldAssign//sourceId:1233644_1_51649
omsAccount_2.setAccountTypeCode(reqDto.getAccountTypeCode());//SimpleFieldAssign//sourceId:1233645_1_51649
omsAccount_2.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1233646_1_51649
omsAccount_2.setIsStatisticalAccount(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1511548_1_51649
omsAccount_2.setEcologicalAccountTypeCode(reqDto.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1233647_1_51649
omsAccount_2.setAccountObjectClass(reqDto.getAccountObjectClass());//SimpleFieldAssign//sourceId:1233648_1_51649
omsAccount_2.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1233649_1_51649
omsAccount_2.setAccountObjectTypeCode(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1233650_1_51649
omsAccount_2.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1233651_1_51649
omsAccount_2.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1551775_1_51649
omsAccount_2.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1551776_1_51649
omsAccount_2.setDistributionSystemTypeCode(reqDto.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1233652_1_51649
omsAccount_2.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1233653_1_51649
omsAccount_2.setDistributionAccountId(reqDto.getDistributionAccountId());//SimpleFieldAssign//sourceId:1551779_1_51649
omsAccount_2.setRelSubBudgetAccountCode(reqDto.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1551777_1_51649
omsAccount_2.setRelPlusSubAccountCode(reqDto.getRelPlusSubAccountCode());//SimpleFieldAssign//sourceId:1551780_1_51649
omsAccount_2.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1233654_1_51649
omsAccount_2.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1234893_1_51649
omsAccount_2.setAppId(reqDto.getAppId());//SimpleFieldAssign//sourceId:1234894_1_51649
omsAccount_2.setIsIncomingAccount(reqDto.getIsIncomingAccount());//SimpleFieldAssign//sourceId:1551774_1_51649
    }
  
    /*7-1-01-新增资金账户[7679]   */
    Assert.isNull(omsAccount_2.getAccountCode(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-账户标识不能为空",false);
Assert.isNull(omsAccount_2.getCertificationStatus(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-认证状态不能为空",false);
Assert.isNull(omsAccount_2.getAccountTypeCode(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-账户类型不能为空",false);
Assert.isNull(omsAccount_2.getIsBudgetAccount(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-是否预算账户不能为空",false);
Assert.isNull(omsAccount_2.getEcologicalAccountTypeCode(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-生态账户类型编码不能为空",false);
Assert.isNull(omsAccount_2.getAccountObjectClass(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-账户关联主体分类类型不能为空",false);
Assert.isNull(omsAccount_2.getAccountContentCode(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-关联归属主体标识不能为空",false);
Assert.isNull(omsAccount_2.getDistributionSystemTypeCode(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-发行体系类型编码不能为空",false);
Assert.isNull(omsAccount_2.getIsOrgOfficialAccountNom(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-是否组织正式财务标准不能为空",false);
Assert.isNull(omsAccount_2.getSubjectLifeCycle(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-主体生命周期不能为空",false);
Assert.isNull(omsAccount_2.getSpaceId(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-创建于空间ID不能为空",false);
Assert.isNull(omsAccount_2.getAppId(),"D7执行初始化账户(公共)-7-1-01-新增资金账户-创建于联盟应用ID不能为空",false);
      string = mOmsAccountService.addFinanceAccount(omsAccount_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    if(string !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(string!=null){
      receptionServiceReq.setAccountId(string);//SimpleFieldAssign//sourceId:1233332_1_51650
    }
  
    /*约定出参：账户ID[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getAccountId(),"D7执行初始化账户(公共)-约定出参：账户ID-账户ID不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);
      
      
      receptionServiceRes_1 = receptionServiceRes;
           }
      }
else if((omsAccount != null )){
       //elseif(7-1-01-查询资金账户详情.出参 值不等于空 )  51647
      
//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_2 = null;
    if(omsAccount !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq_1=new ImplementReceiveFieldInputReqDto();
  if(omsAccount!=null){
      receptionServiceReq_1.setAccountId(omsAccount.getAccountId());//SimpleFieldAssign//sourceId:1233332_1_51648
    }
  
    /*约定出参：账户ID[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getAccountId(),"D7执行初始化账户(公共)-约定出参：账户ID-账户ID不能为空",false);
      receptionServiceRes_2 = nbFinance.implementReceiveFieldInput(receptionServiceReq_1);
      
      
      receptionServiceRes_1 = receptionServiceRes_2;
           }
    }
if((reqDto!= null&& reqDto.getParentAccountContentCode() != null &&omsAccount != null )) {
        //if((D7执行初始化账户(公共).关联上级账户ID 值不等于空  and 7-1-01-查询资金账户详情.出参 值不等于空 ))  60555

boolean bOOLEAN ;
    if(omsAccount !=null){
          OmsAccount omsAccount_3=new OmsAccount();
  if(omsAccount!=null){
      omsAccount_3.setAccountId(omsAccount.getAccountId());//SimpleFieldAssign//sourceId:1519456_1_60556
    }
if(reqDto!=null){
      omsAccount_3.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1519457_1_60556
    }

    /*7-1-01修改资金账户[8368]   */
    Assert.isNull(omsAccount_3.getAccountId(),"D7执行初始化账户(公共)-7-1-01修改资金账户-账户ID不能为空",false);
Assert.isNull(omsAccount_3.getParentAccountContentCode(),"D7执行初始化账户(公共)-7-1-01修改资金账户-上级账户归属主体标识不能为空",false);
      bOOLEAN = mOmsAccountService.updateFinanceAccount(omsAccount_3)/*vcase invoke 本地 method 方法调用;*/;



           }
    }
ImplementInitializeFinanceAccountComRespDto retData = new ImplementInitializeFinanceAccountComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setAccountId(receptionServiceRes_1.getAccountId());//SimpleFieldAssign//sourceId:1238148_1
    }
  

  
  
return retData;
  }
/**
   * D7查财务资金来源列表[7670]
   * gen by moon at 11/5/2023, 1:08:15 AM
   */
  @Trace(operationName = "D7查财务资金来源列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryAccountCapitalSourceListRespDto queryAccountCapitalSourceList(QueryAccountCapitalSourceListReqDto reqDto){
    
      
      List<OmsAccountCapitalSource> listOmsAccountCapitalSource_1 =new ArrayList<>();
//步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!=null){
      receptionServiceReq.setUseSceneTypeCode(reqDto.getUseSceneTypeCode());//SimpleFieldAssign//sourceId:1231953_1
receptionServiceReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1231954_1
receptionServiceReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1231955_1
    }
  
    /*M7接收入参字段[7656]  用于特殊方法接收上游入参。 */
    
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);
      
      
      
    
//步骤1: 7-1-05查询财务资金来源列表 - queryAccountCapitalSourceList
     List<OmsAccountCapitalSource> listOmsAccountCapitalSource =new ArrayList<>();
    QueryAccountCapitalSourceListReq queryAccountCapitalSourceListReq=new QueryAccountCapitalSourceListReq();
  queryAccountCapitalSourceListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1231940_1
if(reqDto!=null){
      queryAccountCapitalSourceListReq.setUseSceneTypeCode(reqDto.getUseSceneTypeCode());//SimpleFieldAssign//sourceId:1231937_1
queryAccountCapitalSourceListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1231938_1
queryAccountCapitalSourceListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1231939_1
    }
  
    /*7-1-05查询财务资金来源列表[7671]   */
    Assert.isNull(queryAccountCapitalSourceListReq.getSpaceId(),"D7查财务资金来源列表-7-1-05查询财务资金来源列表-创建于空间ID不能为空",false);
      listOmsAccountCapitalSource = mOmsAccountCapitalSourceService.queryAccountCapitalSourceList(queryAccountCapitalSourceListReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsAccountCapitalSource_1 = listOmsAccountCapitalSource;
    
QueryAccountCapitalSourceListRespDto retData = new QueryAccountCapitalSourceListRespDto();
  retData.setAccountCapitalSourceList(listOmsAccountCapitalSource_1.stream().map(item -> BeanUtil.toBean(item, AccountCapitalSourceDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1231959_1
  

  
  
return retData;
  }
/**
   * D7查财务科目详情(公共)[7709]
   * gen by moon at 3/8/2024, 3:47:14 AM
   */
  @Trace(operationName = "D7查财务科目详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryAccountSubjectDetailComRespDto queryAccountSubjectDetailCom(QueryAccountSubjectDetailComReqDto reqDto){
    
      
      OmsAccountSubject omsAccountSubject_1 =null;
//步骤0: 7-1-06查询财务科目详情 - queryAccountSubjectDetail
     OmsAccountSubject omsAccountSubject = null;
    QueryAccountSubjectDetailReq queryAccountSubjectDetailReq=new QueryAccountSubjectDetailReq();
queryAccountSubjectDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1242915_1
if(reqDto!=null){
      queryAccountSubjectDetailReq.setAccountSubjectld(reqDto.getAccountSubjectld());//SimpleFieldAssign//sourceId:1246822_1
queryAccountSubjectDetailReq.setAccountSubjectCode(reqDto.getAccountSubjectCode());//SimpleFieldAssign//sourceId:1565169_1
queryAccountSubjectDetailReq.setAccountSubjectType(reqDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1242911_1
queryAccountSubjectDetailReq.setIncomeExpensesType(reqDto.getIncomeExpensesType());//SimpleFieldAssign//sourceId:1242912_1
queryAccountSubjectDetailReq.setAccountSubjectClassCode(reqDto.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1242913_1
queryAccountSubjectDetailReq.setBehaviorTypeCode(reqDto.getBehaviorTypeCode());//SimpleFieldAssign//sourceId:1243343_1
queryAccountSubjectDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1242914_1
    }
  
    /*7-1-06查询财务科目详情[7710]   */
Assert.isNull(queryAccountSubjectDetailReq.getSpaceId(),"D7查财务科目详情(公共)-7-1-06查询财务科目详情-创建于空间ID不能为空",false);
      omsAccountSubject = mOmsAccountSubjectService.queryAccountSubjectDetail(queryAccountSubjectDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsAccountSubject_1 = omsAccountSubject;
    
QueryAccountSubjectDetailComRespDto retData = new QueryAccountSubjectDetailComRespDto();
  if(omsAccountSubject_1!=null){
      retData.setAccountSubjectld(omsAccountSubject_1.getAccountSubjectld());//SimpleFieldAssign//sourceId:1242930_1
retData.setAccountSubjectCode(omsAccountSubject_1.getAccountSubjectCode());//SimpleFieldAssign//sourceId:1242931_1
retData.setAccountSubjectName(omsAccountSubject_1.getAccountSubjectName());//SimpleFieldAssign//sourceId:1242932_1
retData.setAccountSubjectType(omsAccountSubject_1.getAccountSubjectType());//SimpleFieldAssign//sourceId:1350254_1
retData.setIncomeExpensesType(omsAccountSubject_1.getIncomeExpensesType());//SimpleFieldAssign//sourceId:1350255_1
retData.setAccountSubjectClassCode(omsAccountSubject_1.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1350256_1
retData.setBehaviorTypeCode(omsAccountSubject_1.getBehaviorTypeCode());//SimpleFieldAssign//sourceId:1350257_1
retData.setIsFundsIndex(omsAccountSubject_1.getIsFundsIndex());//SimpleFieldAssign//sourceId:1350258_1
retData.setIsOrgOfficialAccountNom(omsAccountSubject_1.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1242933_1
retData.setSubjectLifeCycle(omsAccountSubject_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1350259_1
retData.setOperationInductionId(omsAccountSubject_1.getOperationInductionId());//SimpleFieldAssign//sourceId:1350260_1
retData.setOperateTime(omsAccountSubject_1.getOperateTime());//SimpleFieldAssign//sourceId:1350261_1
    }
  

  
  
return retData;
  }
/**
   * D7查财务资金来源详情(公共)[7707]
   * gen by moon at 12/1/2023, 3:40:20 AM
   */
  @Trace(operationName = "D7查财务资金来源详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryAccountCapitalSourceDetailComRespDto queryAccountCapitalSourceDetailCom(QueryAccountCapitalSourceDetailComReqDto reqDto){


      OmsAccountCapitalSource omsAccountCapitalSource_1 =null;
//步骤0: 7-1-05查询财务资金来源详情 - queryAccountCapitalSourceDetail
     OmsAccountCapitalSource omsAccountCapitalSource = null;
    QueryAccountCapitalSourceDetailReq queryAccountCapitalSourceDetailReq=new QueryAccountCapitalSourceDetailReq();
queryAccountCapitalSourceDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1242857_1
if(reqDto!=null){
      queryAccountCapitalSourceDetailReq.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1242855_1
queryAccountCapitalSourceDetailReq.setCapitalSourceName(reqDto.getCapitalSourceName());//SimpleFieldAssign//sourceId:1363299_1
queryAccountCapitalSourceDetailReq.setUseSceneTypeCode(reqDto.getUseSceneTypeCode());//SimpleFieldAssign//sourceId:1363300_1
queryAccountCapitalSourceDetailReq.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1363301_1
queryAccountCapitalSourceDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1363302_1
queryAccountCapitalSourceDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1242856_1
    }

    /*7-1-05查询财务资金来源详情[7708]   */
Assert.isNull(queryAccountCapitalSourceDetailReq.getSpaceId(),"D7查财务资金来源详情(公共)-7-1-05查询财务资金来源详情-创建于空间ID不能为空",false);
      omsAccountCapitalSource = mOmsAccountCapitalSourceService.queryAccountCapitalSourceDetail(queryAccountCapitalSourceDetailReq)/*vcase invoke 本地 method 方法调用;*/;


      omsAccountCapitalSource_1 = omsAccountCapitalSource;

QueryAccountCapitalSourceDetailComRespDto retData = new QueryAccountCapitalSourceDetailComRespDto();
  if(omsAccountCapitalSource_1!=null){
      retData.setCapitalSourceId(omsAccountCapitalSource_1.getCapitalSourceId());//SimpleFieldAssign//sourceId:1242871_1
retData.setCapitalSourceCode(omsAccountCapitalSource_1.getCapitalSourceCode());//SimpleFieldAssign//sourceId:1242872_1
retData.setCapitalSourceName(omsAccountCapitalSource_1.getCapitalSourceName());//SimpleFieldAssign//sourceId:1242873_1
retData.setCapitalSourceLogo(omsAccountCapitalSource_1.getCapitalSourceLogo());//SimpleFieldAssign//sourceId:1242874_1
retData.setIsOrgOfficialAccountNom(omsAccountCapitalSource_1.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1242875_1
    }




return retData;
  }
/**
   * D7执行账户减金额权限判断(公共)[7701]
   * gen by moon at 3/4/2024, 12:47:18 PM
   */
  @Trace(operationName = "D7执行账户减金额权限判断(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementAccountSubtractAmountJjudgeComRespDto implementAccountSubtractAmountJjudgeCom(ImplementAccountSubtractAmountJjudgeComReqDto reqDto){


      ImplementReceiveFieldInputRespDto receptionServiceRes_3 =null;
//virtualUsage 7-1-01-查资金账户可用余额（用于判断余额是否足额）  51891
      OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1240371_1_51891
queryFinanceAccountDetailComReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1240369_1_51891
queryFinanceAccountDetailComReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1240375_1_51891
    }

    /*7-1-01-查资金账户可用余额（用于判断余额是否足额）[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountObjectId(),"D7执行账户减金额权限判断(公共)-7-1-01-查资金账户可用余额（用于判断余额是否足额）-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsBudgetAccount(),"D7执行账户减金额权限判断(公共)-7-1-01-查资金账户可用余额（用于判断余额是否足额）-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSpaceId(),"D7执行账户减金额权限判断(公共)-7-1-01-查资金账户可用余额（用于判断余额是否足额）-创建于空间ID不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsAccount != null &&reqDto!= null&&  reqDto.getBillTypeCode() !=null && reqDto.getBillTypeCode().equals("SPENDING")&&reqDto!= null&&  reqDto.getIsBudgetAccount() !=null && reqDto.getIsBudgetAccount().equals("FALSE"))) {
        //if((7-1-01-查资金账户可用余额（用于判断余额是否足额）.出参 值不等于空  and D7执行账户减金额权限判断(公共).收支类型 等于 支出 and D7执行账户减金额权限判断(公共).是否预算账户 等于 否))  51892

ImplementNumericalContrastMagnitudeComRespDto implementNumericalContrastMagnitudeComRespDto = null;
    if(omsAccount !=null){
          ImplementNumericalContrastMagnitudeComReqDto implementNumericalContrastMagnitudeComReqDto=new ImplementNumericalContrastMagnitudeComReqDto();
  if(omsAccount!=null){
      implementNumericalContrastMagnitudeComReqDto.setCalcPara1(omsAccount.getSettlableBalance());//SimpleFieldAssign//sourceId:1240445_1_51896
    }
if(reqDto!=null){
      implementNumericalContrastMagnitudeComReqDto.setCalcPara2(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1240446_1_51896
    }

    /*D2账户可用余额与账单金额比大小(公共)[5551]   */
    Assert.isNull(implementNumericalContrastMagnitudeComReqDto.getCalcPara1(),"D7执行账户减金额权限判断(公共)-D2账户可用余额与账单金额比大小(公共)-计算入参1不能为空",false);
Assert.isNull(implementNumericalContrastMagnitudeComReqDto.getCalcPara2(),"D7执行账户减金额权限判断(公共)-D2账户可用余额与账单金额比大小(公共)-计算入参2不能为空",false);
      implementNumericalContrastMagnitudeComRespDto = fwCompInterfaceModeClient.implementNumericalContrastMagnitudeCom(implementNumericalContrastMagnitudeComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
if((implementNumericalContrastMagnitudeComRespDto!= null&&  implementNumericalContrastMagnitudeComRespDto.getNumCompareResult() !=null && implementNumericalContrastMagnitudeComRespDto.getNumCompareResult().equals("BEFORE"))) {
        //if(D2账户可用余额与账单金额比大小(公共).数值比较结果 等于 之前（小于）)  51897

//异常结束 60677
      throw new BizException("CC10000291","对不起，可用金额不足，请联系管理员~",false);
      }
else if((implementNumericalContrastMagnitudeComRespDto!= null&&  implementNumericalContrastMagnitudeComRespDto.getNumCompareResult() !=null && implementNumericalContrastMagnitudeComRespDto.getNumCompareResult().equals("PRESENT")||implementNumericalContrastMagnitudeComRespDto!= null&&  implementNumericalContrastMagnitudeComRespDto.getNumCompareResult() !=null && implementNumericalContrastMagnitudeComRespDto.getNumCompareResult().equals("LATER"))){
       //elseif((D2账户可用余额与账单金额比大小(公共).数值比较结果 等于 当前（等于） or D2账户可用余额与账单金额比大小(公共).数值比较结果 等于 之后（大于）))  51901

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq.setIsAllowOpt("TRUE");//sourceId:1240479_1_51902

    /*M7约定为允许操作[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getIsAllowOpt(),"D7执行账户减金额权限判断(公共)-M7约定为允许操作-是否允许操作不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);



//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_2 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_1=new ImplementReceiveFieldInputReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_1.setIsAllowOpt(receptionServiceRes.getIsAllowOpt());//SimpleFieldAssign//sourceId:1240533_1_51903
    }

    /*M7接收上文出参字段[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getIsAllowOpt(),"D7执行账户减金额权限判断(公共)-M7接收上文出参字段-是否允许操作不能为空",false);
      receptionServiceRes_2 = nbFinance.implementReceiveFieldInput(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
    }
      }
ImplementAccountSubtractAmountJjudgeComRespDto retData = new ImplementAccountSubtractAmountJjudgeComRespDto();
  if(receptionServiceRes_3!=null){
      retData.setIsAllowOpt(receptionServiceRes_3.getIsAllowOpt());//SimpleFieldAssign//sourceId:1240582_1
    }




return retData;
  }
/**
   * D7-查询财务科目列表(公共)[7712]
   * gen by moon at 3/4/2024, 12:47:01 PM
   */
  @Trace(operationName = "D7-查询财务科目列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryAccountSubjectListComRespDto queryAccountSubjectListCom(QueryAccountSubjectListComReqDto reqDto){
    
      
      List<OmsAccountSubject> listOmsAccountSubject_1 =new ArrayList<>();
//步骤0: 7-1-06查询财务科目列表 - queryAccountSubjectList
     List<OmsAccountSubject> listOmsAccountSubject =new ArrayList<>();
    QueryAccountSubjectListReq queryAccountSubjectListReq=new QueryAccountSubjectListReq();
queryAccountSubjectListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1243307_1
if(reqDto!=null){
      queryAccountSubjectListReq.setAccountSubjectld(reqDto.getAccountSubjectld());//SimpleFieldAssign//sourceId:1353454_1
      queryAccountSubjectListReq.setAccountSubjectName(reqDto.getAccountSubjectName());//SimpleFieldAssign//sourceId:1350003_1
      queryAccountSubjectListReq.setAccountSubjectType(reqDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1243303_1
queryAccountSubjectListReq.setIncomeExpensesType(reqDto.getIncomeExpensesType());//SimpleFieldAssign//sourceId:1243304_1
queryAccountSubjectListReq.setAccountSubjectClassCode(reqDto.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1243305_1
queryAccountSubjectListReq.setBehaviorTypeCode(reqDto.getBehaviorTypeCode());//SimpleFieldAssign//sourceId:1562351_1
queryAccountSubjectListReq.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1350004_1
queryAccountSubjectListReq.setIsFundsIndex(reqDto.getIsFundsIndex());//SimpleFieldAssign//sourceId:1350005_1
queryAccountSubjectListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1349999_1
queryAccountSubjectListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1243306_1
    }
  
    /*7-1-06查询财务科目列表[7711]   */
Assert.isNull(queryAccountSubjectListReq.getSpaceId(),"D7-查询财务科目列表(公共)-7-1-06查询财务科目列表-创建于空间ID不能为空",false);
      listOmsAccountSubject = mOmsAccountSubjectService.queryAccountSubjectList(queryAccountSubjectListReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsAccountSubject_1 = listOmsAccountSubject;
    
QueryAccountSubjectListComRespDto retData = new QueryAccountSubjectListComRespDto();
  retData.setAccountSubjectList(listOmsAccountSubject_1.stream().map(item -> BeanUtil.toBean(item, AccountSubjectDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1243312_1
  

  
  
return retData;
  }
/**
   * D7新增财务科目[8003]
   * gen by moon at 2/24/2024, 12:30:18 AM
   */
  @Trace(operationName = "D7新增财务科目")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddAccountSubjectRespDto addAccountSubject(AddAccountSubjectReqDto reqDto){


      AddAccountSubjectComRespDto addAccountSubjectComRespDto_1 =null;
//virtualUsage D7-查询财务科目列表(公共)  54544
      QueryAccountSubjectListComRespDto queryAccountSubjectListComRespDto = null;
    QueryAccountSubjectListComReqDto queryAccountSubjectListComReqDto=new QueryAccountSubjectListComReqDto();
  queryAccountSubjectListComReqDto.setIsArchive("FALSE");//sourceId:1350181_1_54544
if(reqDto!=null){
      queryAccountSubjectListComReqDto.setAccountSubjectName(reqDto.getAccountSubjectName());//SimpleFieldAssign//sourceId:1350182_1_54544
queryAccountSubjectListComReqDto.setAccountSubjectType(reqDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1350176_1_54544
queryAccountSubjectListComReqDto.setIncomeExpensesType(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1350177_1_54544
queryAccountSubjectListComReqDto.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1350183_1_54544
queryAccountSubjectListComReqDto.setIsFundsIndex(reqDto.getIsFundsIndex());//SimpleFieldAssign//sourceId:1350184_1_54544
    }

    /*D7-查询财务科目列表(公共)[7712]   */
    Assert.isNull(queryAccountSubjectListComReqDto.getAccountSubjectName(),"D7新增财务科目-D7-查询财务科目列表(公共)-科目名称不能为空",false);
Assert.isNull(queryAccountSubjectListComReqDto.getAccountSubjectType(),"D7新增财务科目-D7-查询财务科目列表(公共)-科目类型不能为空",false);
Assert.isNull(queryAccountSubjectListComReqDto.getIncomeExpensesType(),"D7新增财务科目-D7-查询财务科目列表(公共)-收支类型不能为空",false);
Assert.isNull(queryAccountSubjectListComReqDto.getIsOrgOfficialAccountNom(),"D7新增财务科目-D7-查询财务科目列表(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(queryAccountSubjectListComReqDto.getIsFundsIndex(),"D7新增财务科目-D7-查询财务科目列表(公共)-是否资金指标不能为空",false);
Assert.isNull(queryAccountSubjectListComReqDto.getIsArchive(),"D7新增财务科目-D7-查询财务科目列表(公共)-是否存档不能为空",false);
      queryAccountSubjectListComRespDto = queryAccountSubjectListCom(queryAccountSubjectListComReqDto)/*vcase invoke 同服务,同domain*/;



if((queryAccountSubjectListComRespDto!= null&&  queryAccountSubjectListComRespDto.getAccountSubjectList() !=null && queryAccountSubjectListComRespDto.getAccountSubjectList().size()>0)) {
        //if(D7-查询财务科目列表(公共).财务科目列表数据集条数 大于 0)  54545

//异常结束 54546
      throw new BizException("C00116","对不起！已存在~！",false);
      }
else if((queryAccountSubjectListComRespDto!= null&&  queryAccountSubjectListComRespDto.getAccountSubjectList() !=null && queryAccountSubjectListComRespDto.getAccountSubjectList().size()==0)){
       //elseif(D7-查询财务科目列表(公共).财务科目列表数据集条数 等于 0)  54547

AddAccountSubjectComRespDto addAccountSubjectComRespDto = null;
    AddAccountSubjectComReqDto addAccountSubjectComReqDto=new AddAccountSubjectComReqDto();
  if(reqDto!=null){
      addAccountSubjectComReqDto.setAccountSubjectName(reqDto.getAccountSubjectName());//SimpleFieldAssign//sourceId:1349869_1_54548
addAccountSubjectComReqDto.setAccountSubjectType(reqDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1349870_1_54548
addAccountSubjectComReqDto.setIncomeExpensesType(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1349871_1_54548
addAccountSubjectComReqDto.setAccountSubjectClassCode(reqDto.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1349872_1_54548
addAccountSubjectComReqDto.setBehaviorTypeCode(reqDto.getBehaviorTypeCode());//SimpleFieldAssign//sourceId:1349873_1_54548
addAccountSubjectComReqDto.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1349874_1_54548
addAccountSubjectComReqDto.setIsFundsIndex(reqDto.getIsFundsIndex());//SimpleFieldAssign//sourceId:1349875_1_54548
addAccountSubjectComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1349876_1_54548
    }

    /*D7新增财务科目(公共)[8004]   */
    Assert.isNull(addAccountSubjectComReqDto.getAccountSubjectName(),"D7新增财务科目-D7新增财务科目(公共)-科目名称不能为空",false);
Assert.isNull(addAccountSubjectComReqDto.getAccountSubjectType(),"D7新增财务科目-D7新增财务科目(公共)-科目类型不能为空",false);
Assert.isNull(addAccountSubjectComReqDto.getIncomeExpensesType(),"D7新增财务科目-D7新增财务科目(公共)-收支类型不能为空",false);
Assert.isNull(addAccountSubjectComReqDto.getIsOrgOfficialAccountNom(),"D7新增财务科目-D7新增财务科目(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(addAccountSubjectComReqDto.getIsFundsIndex(),"D7新增财务科目-D7新增财务科目(公共)-是否资金指标不能为空",false);
Assert.isNull(addAccountSubjectComReqDto.getSubjectLifeCycle(),"D7新增财务科目-D7新增财务科目(公共)-主体生命周期不能为空",false);
      addAccountSubjectComRespDto = addAccountSubjectCom(addAccountSubjectComReqDto)/*vcase invoke 同服务,同domain*/;


      addAccountSubjectComRespDto_1 = addAccountSubjectComRespDto;
    }
AddAccountSubjectRespDto retData = new AddAccountSubjectRespDto();
  if(addAccountSubjectComRespDto_1!=null){
      retData.setAccountSubjectld(addAccountSubjectComRespDto_1.getAccountSubjectld());//SimpleFieldAssign//sourceId:1349950_1
    }




return retData;
  }
/**
   * D7新增财务科目(公共)[8004]
   * gen by moon at 2/24/2024, 12:30:26 AM
   */
  @Trace(operationName = "D7新增财务科目(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddAccountSubjectComRespDto addAccountSubjectCom(AddAccountSubjectComReqDto reqDto){


      String string_1 =null;
//步骤0: 7-1-06新增财务科目 - addAccountSubject
     String string = null;
    OmsAccountSubject omsAccountSubject=new OmsAccountSubject();
  if(reqDto!=null){
omsAccountSubject.setAccountSubjectName(reqDto.getAccountSubjectName());//SimpleFieldAssign//sourceId:1349849_1
omsAccountSubject.setAccountSubjectType(reqDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1349850_1
omsAccountSubject.setIncomeExpensesType(reqDto.getIncomeExpensesType());//SimpleFieldAssign//sourceId:1349851_1
omsAccountSubject.setAccountSubjectClassCode(reqDto.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1349852_1
omsAccountSubject.setBehaviorTypeCode(reqDto.getBehaviorTypeCode());//SimpleFieldAssign//sourceId:1349853_1
omsAccountSubject.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1349854_1
omsAccountSubject.setIsFundsIndex(reqDto.getIsFundsIndex());//SimpleFieldAssign//sourceId:1349855_1
omsAccountSubject.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1349856_1
    }

    /*7-1-06新增财务科目[8005]   */
Assert.isNull(omsAccountSubject.getAccountSubjectName(),"D7新增财务科目(公共)-7-1-06新增财务科目-科目名称不能为空",false);
Assert.isNull(omsAccountSubject.getAccountSubjectType(),"D7新增财务科目(公共)-7-1-06新增财务科目-科目类型不能为空",false);
Assert.isNull(omsAccountSubject.getIncomeExpensesType(),"D7新增财务科目(公共)-7-1-06新增财务科目-收支类型不能为空",false);
Assert.isNull(omsAccountSubject.getIsOrgOfficialAccountNom(),"D7新增财务科目(公共)-7-1-06新增财务科目-是否组织正式财务标准不能为空",false);
Assert.isNull(omsAccountSubject.getIsFundsIndex(),"D7新增财务科目(公共)-7-1-06新增财务科目-是否资金指标不能为空",false);
Assert.isNull(omsAccountSubject.getSubjectLifeCycle(),"D7新增财务科目(公共)-7-1-06新增财务科目-主体生命周期不能为空",false);
      string = mOmsAccountSubjectService.addAccountSubject(omsAccountSubject)/*vcase invoke 本地 method 方法调用;*/;


      string_1 = string;

AddAccountSubjectComRespDto retData = new AddAccountSubjectComRespDto();
  if(string_1!=null){
      retData.setAccountSubjectld(string_1);//SimpleFieldAssign//sourceId:1349867_1
    }




return retData;
  }
/**
   * D7删除财务科目[8008]
   * gen by moon at 11/24/2023, 11:58:10 AM
   */
  @Trace(operationName = "D7删除财务科目")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeleteAccountSubjectRespDto deleteAccountSubject(DeleteAccountSubjectReqDto reqDto){


      //virtualUsage 7-1-06查询财务科目详情  54536
      OmsAccountSubject omsAccountSubject = null;
    QueryAccountSubjectDetailReq queryAccountSubjectDetailReq=new QueryAccountSubjectDetailReq();
  queryAccountSubjectDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1349985_1_54536
if(reqDto!=null){
      queryAccountSubjectDetailReq.setAccountSubjectld(reqDto.getAccountSubjectld());//SimpleFieldAssign//sourceId:1349984_1_54536
    }

    /*7-1-06查询财务科目详情[7710]   */
    Assert.isNull(queryAccountSubjectDetailReq.getAccountSubjectld(),"D7删除财务科目-7-1-06查询财务科目详情-科目ID不能为空",false);
Assert.isNull(queryAccountSubjectDetailReq.getSpaceId(),"D7删除财务科目-7-1-06查询财务科目详情-创建于空间ID不能为空",false);
      omsAccountSubject = mOmsAccountSubjectService.queryAccountSubjectDetail(queryAccountSubjectDetailReq)/*vcase invoke 本地 method 方法调用;*/;



//virtualUsage D1执行生命周期判断(公共)  54537
      ImplementLifeCycleJudgmentComRespDto implementLifeCycleJudgmentComRespDto = null;
    if(omsAccountSubject !=null){
          ImplementLifeCycleJudgmentComReqDto implementLifeCycleJudgmentComReqDto=new ImplementLifeCycleJudgmentComReqDto();
  implementLifeCycleJudgmentComReqDto.setLifecyCycleOperationType("DELETE");//sourceId:1349971_1_54537
if(omsAccountSubject!=null){
      implementLifeCycleJudgmentComReqDto.setSubjectLifeCycle(omsAccountSubject.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1349972_1_54537
    }

    /*D1执行生命周期判断(公共)[7830]   */
    Assert.isNull(implementLifeCycleJudgmentComReqDto.getSubjectLifeCycle(),"D7删除财务科目-D1执行生命周期判断(公共)-主体生命周期不能为空",false);
Assert.isNull(implementLifeCycleJudgmentComReqDto.getLifecyCycleOperationType(),"D7删除财务科目-D1执行生命周期判断(公共)-生命周期操作类型不能为空",false);
      implementLifeCycleJudgmentComRespDto = fwBaseBatchClient.implementLifeCycleJudgmentCom(implementLifeCycleJudgmentComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//virtualUsage 7-1-06删除财务科目  54538
      boolean bOOLEAN ;
    if(omsAccountSubject !=null){
          String string=new String();
  if(omsAccountSubject!=null){
      string=omsAccountSubject.getAccountSubjectld();;//SimpleFieldAssign//sourceId:1349990_1_54538
    }

    /*7-1-06删除财务科目[8009]   */
    Assert.isNull(string,"D7删除财务科目-7-1-06删除财务科目-科目ID不能为空",false);
      bOOLEAN = mOmsAccountSubjectService.deleteAccountSubject(string)/*vcase invoke 本地 method 方法调用;*/;



           }
DeleteAccountSubjectRespDto retData = new DeleteAccountSubjectRespDto();





return retData;
  }
/**
   * D7查财务科目列表[8011]
   * gen by moon at 11/24/2023, 1:05:19 AM
   */
  @Trace(operationName = "D7查财务科目列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryAccountSubjectListRespDto queryAccountSubjectList(QueryAccountSubjectListReqDto reqDto){


      QueryAccountSubjectListComRespDto queryAccountSubjectListComRespDto_1 =null;
//步骤0: D7-查询财务科目列表(公共) - queryAccountSubjectListCom
     QueryAccountSubjectListComRespDto queryAccountSubjectListComRespDto = null;
    QueryAccountSubjectListComReqDto queryAccountSubjectListComReqDto=new QueryAccountSubjectListComReqDto();
  if(reqDto!=null){
      queryAccountSubjectListComReqDto.setAccountSubjectName(reqDto.getAccountSubjectName());//SimpleFieldAssign//sourceId:1350010_1
queryAccountSubjectListComReqDto.setAccountSubjectType(reqDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1349993_1
queryAccountSubjectListComReqDto.setIncomeExpensesType(reqDto.getIncomeExpensesType());//SimpleFieldAssign//sourceId:1349994_1
queryAccountSubjectListComReqDto.setAccountSubjectClassCode(reqDto.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1349995_1
queryAccountSubjectListComReqDto.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1350011_1
queryAccountSubjectListComReqDto.setIsFundsIndex(reqDto.getIsFundsIndex());//SimpleFieldAssign//sourceId:1350012_1
queryAccountSubjectListComReqDto.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1350013_1
    }

    /*D7-查询财务科目列表(公共)[7712]   */

      queryAccountSubjectListComRespDto = queryAccountSubjectListCom(queryAccountSubjectListComReqDto)/*vcase invoke 同服务,同domain*/;


      queryAccountSubjectListComRespDto_1 = queryAccountSubjectListComRespDto;

QueryAccountSubjectListRespDto retData = new QueryAccountSubjectListRespDto();
  if(queryAccountSubjectListComRespDto_1!=null){
      retData.setAccountSubjectList(queryAccountSubjectListComRespDto_1.getAccountSubjectList().stream().map(item -> BeanUtil.toBean(item, AccountSubjectDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1350022_1
    }




return retData;
  }
/**
   * D7修改财务科目[8013]
   * gen by moon at 2/24/2024, 12:30:35 AM
   */
  @Trace(operationName = "D7修改财务科目")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateAccountSubjectRespDto updateAccountSubject(UpdateAccountSubjectReqDto reqDto){


      //virtualUsage D7查财务科目详情(公共)  54623
      QueryAccountSubjectDetailComRespDto queryAccountSubjectDetailComRespDto = null;
    QueryAccountSubjectDetailComReqDto queryAccountSubjectDetailComReqDto=new QueryAccountSubjectDetailComReqDto();
  if(reqDto!=null){
      queryAccountSubjectDetailComReqDto.setAccountSubjectld(reqDto.getAccountSubjectld());//SimpleFieldAssign//sourceId:1353464_1_54623
    }

    /*D7查财务科目详情(公共)[7709]   */
    Assert.isNull(queryAccountSubjectDetailComReqDto.getAccountSubjectld(),"D7修改财务科目-D7查财务科目详情(公共)-科目ID不能为空",false);
      queryAccountSubjectDetailComRespDto = queryAccountSubjectDetailCom(queryAccountSubjectDetailComReqDto)/*vcase invoke 同服务,同domain*/;



      //virtualUsage D7-查询财务科目列表(公共)  54539
      QueryAccountSubjectListComRespDto queryAccountSubjectListComRespDto = null;
    if(queryAccountSubjectDetailComRespDto !=null){
    QueryAccountSubjectListComReqDto queryAccountSubjectListComReqDto=new QueryAccountSubjectListComReqDto();
  queryAccountSubjectListComReqDto.setIsArchive("FALSE");//sourceId:1350047_1_54539
if(reqDto!=null){
      queryAccountSubjectListComReqDto.setAccountSubjectName(reqDto.getAccountSubjectName());//SimpleFieldAssign//sourceId:1350048_1_54539
    }
if(queryAccountSubjectDetailComRespDto!=null){
      queryAccountSubjectListComReqDto.setAccountSubjectType(queryAccountSubjectDetailComRespDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1353486_1_54539
queryAccountSubjectListComReqDto.setIncomeExpensesType(queryAccountSubjectDetailComRespDto.getIncomeExpensesType());//SimpleFieldAssign//sourceId:1353487_1_54539
queryAccountSubjectListComReqDto.setAccountSubjectClassCode(queryAccountSubjectDetailComRespDto.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1353488_1_54539
queryAccountSubjectListComReqDto.setIsOrgOfficialAccountNom(queryAccountSubjectDetailComRespDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1353489_1_54539
queryAccountSubjectListComReqDto.setIsFundsIndex(queryAccountSubjectDetailComRespDto.getIsFundsIndex());//SimpleFieldAssign//sourceId:1353490_1_54539
    }

    /*D7-查询财务科目列表(公共)[7712]   */
    Assert.isNull(queryAccountSubjectListComReqDto.getIsArchive(),"D7修改财务科目-D7-查询财务科目列表(公共)-是否存档不能为空",false);
      queryAccountSubjectListComRespDto = queryAccountSubjectListCom(queryAccountSubjectListComReqDto)/*vcase invoke 同服务,同domain*/;



           }
if((queryAccountSubjectListComRespDto!= null&&  queryAccountSubjectListComRespDto.getAccountSubjectList() !=null && queryAccountSubjectListComRespDto.getAccountSubjectList().size()>0)) {
        //if(D7-查询财务科目列表(公共).财务科目列表数据集条数 大于 0)  54540

//异常结束 54541
      throw new BizException("C00116","对不起！已存在~！",false);
      }
else if((queryAccountSubjectListComRespDto!= null&&  queryAccountSubjectListComRespDto.getAccountSubjectList() !=null && queryAccountSubjectListComRespDto.getAccountSubjectList().size()==0)){
       //elseif(D7-查询财务科目列表(公共).财务科目列表数据集条数 等于 0)  54542

UpdateAccountSubjectComRespDto updateAccountSubjectComRespDto = null;
    UpdateAccountSubjectComReqDto updateAccountSubjectComReqDto=new UpdateAccountSubjectComReqDto();
  if(reqDto!=null){
      updateAccountSubjectComReqDto.setAccountSubjectld(reqDto.getAccountSubjectld());//SimpleFieldAssign//sourceId:1350143_1_54543
updateAccountSubjectComReqDto.setAccountSubjectName(reqDto.getAccountSubjectName());//SimpleFieldAssign//sourceId:1350145_1_54543
updateAccountSubjectComReqDto.setAccountSubjectType(reqDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1350146_1_54543
updateAccountSubjectComReqDto.setIncomeExpensesType(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1350147_1_54543
updateAccountSubjectComReqDto.setAccountSubjectClassCode(reqDto.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1350148_1_54543
updateAccountSubjectComReqDto.setBehaviorTypeCode(reqDto.getBehaviorTypeCode());//SimpleFieldAssign//sourceId:1350153_1_54543
updateAccountSubjectComReqDto.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1350150_1_54543
updateAccountSubjectComReqDto.setIsFundsIndex(reqDto.getIsFundsIndex());//SimpleFieldAssign//sourceId:1350151_1_54543
updateAccountSubjectComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1350152_1_54543
    }

    /*D7修改财务科目(公共)[8014]   */
    Assert.isNull(updateAccountSubjectComReqDto.getAccountSubjectld(),"D7修改财务科目-D7修改财务科目(公共)-科目ID不能为空",false);
      updateAccountSubjectComRespDto = updateAccountSubjectCom(updateAccountSubjectComReqDto)/*vcase invoke 同服务,同domain*/;



    }
UpdateAccountSubjectRespDto retData = new UpdateAccountSubjectRespDto();





return retData;
  }
/**
   * D7修改财务科目(公共)[8014]
   * gen by moon at 2/24/2024, 12:30:43 AM
   */
  @Trace(operationName = "D7修改财务科目(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateAccountSubjectComRespDto updateAccountSubjectCom(UpdateAccountSubjectComReqDto reqDto){


      //步骤0: 7-1-06修改财务科目 - updateAccountSubject
     boolean bOOLEAN ;
    OmsAccountSubject omsAccountSubject=new OmsAccountSubject();
  if(reqDto!=null){
      omsAccountSubject.setAccountSubjectld(reqDto.getAccountSubjectld());//SimpleFieldAssign//sourceId:1350121_1
omsAccountSubject.setAccountSubjectName(reqDto.getAccountSubjectName());//SimpleFieldAssign//sourceId:1350123_1
omsAccountSubject.setAccountSubjectType(reqDto.getAccountSubjectType());//SimpleFieldAssign//sourceId:1350124_1
omsAccountSubject.setIncomeExpensesType(reqDto.getIncomeExpensesType());//SimpleFieldAssign//sourceId:1350125_1
omsAccountSubject.setAccountSubjectClassCode(reqDto.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1350126_1
omsAccountSubject.setBehaviorTypeCode(reqDto.getBehaviorTypeCode());//SimpleFieldAssign//sourceId:1350127_1
omsAccountSubject.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1350128_1
omsAccountSubject.setIsFundsIndex(reqDto.getIsFundsIndex());//SimpleFieldAssign//sourceId:1350129_1
omsAccountSubject.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1350130_1
omsAccountSubject.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1350131_1
    }

    /*7-1-06修改财务科目[8015]   */
    Assert.isNull(omsAccountSubject.getAccountSubjectld(),"D7修改财务科目(公共)-7-1-06修改财务科目-科目ID不能为空",false);
      bOOLEAN = mOmsAccountSubjectService.updateAccountSubject(omsAccountSubject)/*vcase invoke 本地 method 方法调用;*/;




UpdateAccountSubjectComRespDto retData = new UpdateAccountSubjectComRespDto();





return retData;
  }
/**
   * D7查询财务科目详情[8017]
   * gen by moon at 11/24/2023, 1:05:56 AM
   */
  @Trace(operationName = "D7查询财务科目详情")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryAccountSubjectDetailRespDto queryAccountSubjectDetail(QueryAccountSubjectDetailReqDto reqDto){


      QueryAccountSubjectDetailComRespDto queryAccountSubjectDetailComRespDto_1 =null;
QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto_1 =null;
//virtualUsage D7查财务科目详情(公共)  54549
      QueryAccountSubjectDetailComRespDto queryAccountSubjectDetailComRespDto = null;
    QueryAccountSubjectDetailComReqDto queryAccountSubjectDetailComReqDto=new QueryAccountSubjectDetailComReqDto();
  if(reqDto!=null){
      queryAccountSubjectDetailComReqDto.setAccountSubjectld(reqDto.getAccountSubjectld());//SimpleFieldAssign//sourceId:1350198_1_54549
    }

    /*D7查财务科目详情(公共)[7709]   */
    Assert.isNull(queryAccountSubjectDetailComReqDto.getAccountSubjectld(),"D7查询财务科目详情-D7查财务科目详情(公共)-科目ID不能为空",false);
      queryAccountSubjectDetailComRespDto = queryAccountSubjectDetailCom(queryAccountSubjectDetailComReqDto)/*vcase invoke 同服务,同domain*/;


      queryAccountSubjectDetailComRespDto_1 = queryAccountSubjectDetailComRespDto;
//virtualUsage D1-3查询个人就职记录信息详情（公共）  54550
      QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
    if(queryAccountSubjectDetailComRespDto !=null){
          QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto=new QueryInductionRecordInfoDetailComReqDto();
  queryInductionRecordInfoDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1350282_1_54550
if(queryAccountSubjectDetailComRespDto!=null){
      queryInductionRecordInfoDetailComReqDto.setInductionRecordId(queryAccountSubjectDetailComRespDto.getOperationInductionId());//SimpleFieldAssign//sourceId:1350274_1_54550
    }

    /*D1-3查询个人就职记录信息详情（公共）[715]   */
    Assert.isNull(queryInductionRecordInfoDetailComReqDto.getInductionRecordId(),"D7查询财务科目详情-D1-3查询个人就职记录信息详情（公共）-就职记录ID不能为空",false);
Assert.isNull(queryInductionRecordInfoDetailComReqDto.getSpaceId(),"D7查询财务科目详情-D1-3查询个人就职记录信息详情（公共）-创建于空间ID不能为空",false);
      queryInductionRecordInfoDetailComRespDto = fwBaseInductionRecordClient.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryInductionRecordInfoDetailComRespDto_1 = queryInductionRecordInfoDetailComRespDto;
           }
QueryAccountSubjectDetailRespDto retData = new QueryAccountSubjectDetailRespDto();
  if(queryAccountSubjectDetailComRespDto_1!=null){
      retData.setAccountSubjectld(queryAccountSubjectDetailComRespDto_1.getAccountSubjectld());//SimpleFieldAssign//sourceId:1350291_1
retData.setAccountSubjectCode(queryAccountSubjectDetailComRespDto_1.getAccountSubjectCode());//SimpleFieldAssign//sourceId:1350292_1
retData.setAccountSubjectName(queryAccountSubjectDetailComRespDto_1.getAccountSubjectName());//SimpleFieldAssign//sourceId:1350293_1
retData.setAccountSubjectType(queryAccountSubjectDetailComRespDto_1.getAccountSubjectType());//SimpleFieldAssign//sourceId:1350294_1
retData.setIncomeExpensesType(queryAccountSubjectDetailComRespDto_1.getIncomeExpensesType());//SimpleFieldAssign//sourceId:1350295_1
retData.setAccountSubjectClassCode(queryAccountSubjectDetailComRespDto_1.getAccountSubjectClassCode());//SimpleFieldAssign//sourceId:1350296_1
retData.setBehaviorTypeCode(queryAccountSubjectDetailComRespDto_1.getBehaviorTypeCode());//SimpleFieldAssign//sourceId:1350297_1
retData.setIsFundsIndex(queryAccountSubjectDetailComRespDto_1.getIsFundsIndex());//SimpleFieldAssign//sourceId:1350298_1
retData.setIsOrgOfficialAccountNom(queryAccountSubjectDetailComRespDto_1.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1350299_1
retData.setSubjectLifeCycle(queryAccountSubjectDetailComRespDto_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1350300_1
retData.setOperationInductionId(queryAccountSubjectDetailComRespDto_1.getOperationInductionId());//SimpleFieldAssign//sourceId:1350301_1
retData.setOperateTime(queryAccountSubjectDetailComRespDto_1.getOperateTime());//SimpleFieldAssign//sourceId:1350302_1
    }
if(queryInductionRecordInfoDetailComRespDto_1!=null){
      retData.setOriginalRoleMemberId(queryInductionRecordInfoDetailComRespDto_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1350303_1
retData.setUserId(queryInductionRecordInfoDetailComRespDto_1.getUserId());//SimpleFieldAssign//sourceId:1350304_1
retData.setUserFace(queryInductionRecordInfoDetailComRespDto_1.getUserFace());//SimpleFieldAssign//sourceId:1350305_1
retData.setIdCardName(queryInductionRecordInfoDetailComRespDto_1.getIdCardName());//SimpleFieldAssign//sourceId:1350306_1
retData.setNickName(queryInductionRecordInfoDetailComRespDto_1.getNickName());//SimpleFieldAssign//sourceId:1350307_1
    }




return retData;
  }
/**
   * D7新增财务资金来源[8043]
   * gen by moon at 2/24/2024, 12:30:51 AM
   */
  @Trace(operationName = "D7新增财务资金来源")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddAccountCapitalSourceRespDto addAccountCapitalSource(AddAccountCapitalSourceReqDto reqDto){


      AddAccountCapitalSourceComRespDto addAccountCapitalSourceComRespDto_1 =null;
//virtualUsage D7查询财务资金来源列表(公共)  54964
      QueryAccountCapitalSourceListComRespDto queryAccountCapitalSourceListComRespDto = null;
    QueryAccountCapitalSourceListComReqDto queryAccountCapitalSourceListComReqDto=new QueryAccountCapitalSourceListComReqDto();
  queryAccountCapitalSourceListComReqDto.setIsArchive("FALSE");//sourceId:1363334_1_54964
if(reqDto!=null){
      queryAccountCapitalSourceListComReqDto.setCapitalSourceName(reqDto.getCapitalSourceName());//SimpleFieldAssign//sourceId:1363331_1_54964
queryAccountCapitalSourceListComReqDto.setUseSceneTypeCode(reqDto.getUseSceneTypeCode());//SimpleFieldAssign//sourceId:1363332_1_54964
    }

    /*D7查询财务资金来源列表(公共)[8045]   */
    Assert.isNull(queryAccountCapitalSourceListComReqDto.getCapitalSourceName(),"D7新增财务资金来源-D7查询财务资金来源列表(公共)-资金来源名称不能为空",false);
Assert.isNull(queryAccountCapitalSourceListComReqDto.getUseSceneTypeCode(),"D7新增财务资金来源-D7查询财务资金来源列表(公共)-使用场景类型编码不能为空",false);
Assert.isNull(queryAccountCapitalSourceListComReqDto.getIsArchive(),"D7新增财务资金来源-D7查询财务资金来源列表(公共)-是否存档不能为空",false);
      queryAccountCapitalSourceListComRespDto = queryAccountCapitalSourceListCom(queryAccountCapitalSourceListComReqDto)/*vcase invoke 同服务,同domain*/;



if((queryAccountCapitalSourceListComRespDto!= null&&  queryAccountCapitalSourceListComRespDto.getAccountCapitalSourceList() !=null && queryAccountCapitalSourceListComRespDto.getAccountCapitalSourceList().size()>0)) {
        //if(D7查询财务资金来源列表(公共).财务资金来源列表数据集条数 大于 0)  54967

//异常结束 54968
      throw new BizException("C00116","对不起！已存在~！",false);
      }
//virtualUsage D2查空间是否开启财务配置答案  54978
      QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1363724_1_54978
queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1363725_1_54978
queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("IS_OPEN_FINANCE");//CUSTOM_CONVENTION//sourceId:1363726_1_54978
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1363727_1_54978

    /*D2查空间是否开启财务配置答案[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"D7新增财务资金来源-D2查空间是否开启财务配置答案-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(),"D7新增财务资金来源-D2查空间是否开启财务配置答案-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"D7新增财务资金来源-D2查空间是否开启财务配置答案-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"D7新增财务资金来源-D2查空间是否开启财务配置答案-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage D7执行是否组织正式财务标准分析(公共)  54977
      ImplementIsOrgOfficialAccountNomAnalyzeComRespDto implementIsOrgOfficialAccountNomAnalyzeComRespDto = null;
    if(queryConfItemMatchAnswerDetailComRespDto !=null){
          ImplementIsOrgOfficialAccountNomAnalyzeComReqDto implementIsOrgOfficialAccountNomAnalyzeComReqDto=new ImplementIsOrgOfficialAccountNomAnalyzeComReqDto();
  if(queryConfItemMatchAnswerDetailComRespDto!=null){
      implementIsOrgOfficialAccountNomAnalyzeComReqDto.setEndValue(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1363705_1_54977
    }

    /*D7执行是否组织正式财务标准分析(公共)[8047]   */
    Assert.isNull(implementIsOrgOfficialAccountNomAnalyzeComReqDto.getEndValue(),"D7新增财务资金来源-D7执行是否组织正式财务标准分析(公共)-空间开启财务模式答案不能为空",false);
      implementIsOrgOfficialAccountNomAnalyzeComRespDto = implementIsOrgOfficialAccountNomAnalyzeCom(implementIsOrgOfficialAccountNomAnalyzeComReqDto)/*vcase invoke 同服务,同domain*/;



           }
//virtualUsage D7新增财务资金来源(公共)  54969
      AddAccountCapitalSourceComRespDto addAccountCapitalSourceComRespDto = null;
    if(implementIsOrgOfficialAccountNomAnalyzeComRespDto !=null){
          AddAccountCapitalSourceComReqDto addAccountCapitalSourceComReqDto=new AddAccountCapitalSourceComReqDto();
  if(reqDto!=null){
      addAccountCapitalSourceComReqDto.setCapitalSourceName(reqDto.getCapitalSourceName());//SimpleFieldAssign//sourceId:1363424_1_54969
addAccountCapitalSourceComReqDto.setCapitalSourceLogo(reqDto.getCapitalSourceLogo());//SimpleFieldAssign//sourceId:1363749_1_54969
addAccountCapitalSourceComReqDto.setUseSceneTypeCode(reqDto.getUseSceneTypeCode());//SimpleFieldAssign//sourceId:1363425_1_54969
addAccountCapitalSourceComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1363426_1_54969
    }
if(implementIsOrgOfficialAccountNomAnalyzeComRespDto!=null){
      addAccountCapitalSourceComReqDto.setIsOrgOfficialAccountNom(implementIsOrgOfficialAccountNomAnalyzeComRespDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1363427_1_54969
    }

    /*D7新增财务资金来源(公共)[8044]   */
    Assert.isNull(addAccountCapitalSourceComReqDto.getCapitalSourceName(),"D7新增财务资金来源-D7新增财务资金来源(公共)-资金来源名称不能为空",false);
Assert.isNull(addAccountCapitalSourceComReqDto.getUseSceneTypeCode(),"D7新增财务资金来源-D7新增财务资金来源(公共)-使用场景类型编码不能为空",false);
Assert.isNull(addAccountCapitalSourceComReqDto.getIsOrgOfficialAccountNom(),"D7新增财务资金来源-D7新增财务资金来源(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(addAccountCapitalSourceComReqDto.getSubjectLifeCycle(),"D7新增财务资金来源-D7新增财务资金来源(公共)-主体生命周期不能为空",false);
      addAccountCapitalSourceComRespDto = addAccountCapitalSourceCom(addAccountCapitalSourceComReqDto)/*vcase invoke 同服务,同domain*/;


      addAccountCapitalSourceComRespDto_1 = addAccountCapitalSourceComRespDto;
           }
AddAccountCapitalSourceRespDto retData = new AddAccountCapitalSourceRespDto();
  if(addAccountCapitalSourceComRespDto_1!=null){
      retData.setCapitalSourceId(addAccountCapitalSourceComRespDto_1.getCapitalSourceId());//SimpleFieldAssign//sourceId:1363513_1
    }




return retData;
  }
/**
   * D7新增财务资金来源(公共)[8044]
   * gen by moon at 2/24/2024, 12:30:59 AM
   */
  @Trace(operationName = "D7新增财务资金来源(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddAccountCapitalSourceComRespDto addAccountCapitalSourceCom(AddAccountCapitalSourceComReqDto reqDto){


      String string_1 =null;
//步骤0: 7-1-05新增财务资金来源 - addAccountCapitalSource
     String string = null;
    OmsAccountCapitalSource omsAccountCapitalSource=new OmsAccountCapitalSource();
  if(reqDto!=null){
omsAccountCapitalSource.setCapitalSourceLogo(reqDto.getCapitalSourceLogo());//SimpleFieldAssign//sourceId:1363747_1
omsAccountCapitalSource.setCapitalSourceName(reqDto.getCapitalSourceName());//SimpleFieldAssign//sourceId:1363412_1
omsAccountCapitalSource.setUseSceneTypeCode(reqDto.getUseSceneTypeCode());//SimpleFieldAssign//sourceId:1363413_1
omsAccountCapitalSource.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1363414_1
omsAccountCapitalSource.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1363415_1
    }

    /*7-1-05新增财务资金来源[8046]   */
Assert.isNull(omsAccountCapitalSource.getCapitalSourceName(),"D7新增财务资金来源(公共)-7-1-05新增财务资金来源-资金来源名称不能为空",false);
Assert.isNull(omsAccountCapitalSource.getUseSceneTypeCode(),"D7新增财务资金来源(公共)-7-1-05新增财务资金来源-使用场景类型编码不能为空",false);
Assert.isNull(omsAccountCapitalSource.getIsOrgOfficialAccountNom(),"D7新增财务资金来源(公共)-7-1-05新增财务资金来源-是否组织正式财务标准不能为空",false);
Assert.isNull(omsAccountCapitalSource.getSubjectLifeCycle(),"D7新增财务资金来源(公共)-7-1-05新增财务资金来源-主体生命周期不能为空",false);
      string = mOmsAccountCapitalSourceService.addAccountCapitalSource(omsAccountCapitalSource)/*vcase invoke 本地 method 方法调用;*/;


      string_1 = string;

AddAccountCapitalSourceComRespDto retData = new AddAccountCapitalSourceComRespDto();
  if(string_1!=null){
      retData.setCapitalSourceId(string_1);//SimpleFieldAssign//sourceId:1363422_1
    }




return retData;
  }
/**
   * D7查询财务资金来源列表(公共)[8045]
   * gen by moon at 12/1/2023, 3:41:00 AM
   */
  @Trace(operationName = "D7查询财务资金来源列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryAccountCapitalSourceListComRespDto queryAccountCapitalSourceListCom(QueryAccountCapitalSourceListComReqDto reqDto){


      List<OmsAccountCapitalSource> listOmsAccountCapitalSource_1 =new ArrayList<>();
//步骤0: 7-1-05查询财务资金来源列表 - queryAccountCapitalSourceList
     List<OmsAccountCapitalSource> listOmsAccountCapitalSource =new ArrayList<>();
    QueryAccountCapitalSourceListReq queryAccountCapitalSourceListReq=new QueryAccountCapitalSourceListReq();
  queryAccountCapitalSourceListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1363317_1
if(reqDto!=null){
      queryAccountCapitalSourceListReq.setCapitalSourceName(reqDto.getCapitalSourceName());//SimpleFieldAssign//sourceId:1363323_1
queryAccountCapitalSourceListReq.setUseSceneTypeCode(reqDto.getUseSceneTypeCode());//SimpleFieldAssign//sourceId:1363314_1
queryAccountCapitalSourceListReq.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1363324_1
queryAccountCapitalSourceListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1363316_1
queryAccountCapitalSourceListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1363315_1
    }

    /*7-1-05查询财务资金来源列表[7671]   */
    Assert.isNull(queryAccountCapitalSourceListReq.getSpaceId(),"D7查询财务资金来源列表(公共)-7-1-05查询财务资金来源列表-创建于空间ID不能为空",false);
      listOmsAccountCapitalSource = mOmsAccountCapitalSourceService.queryAccountCapitalSourceList(queryAccountCapitalSourceListReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsAccountCapitalSource_1 = listOmsAccountCapitalSource;

QueryAccountCapitalSourceListComRespDto retData = new QueryAccountCapitalSourceListComRespDto();
  retData.setAccountCapitalSourceList(listOmsAccountCapitalSource_1.stream().map(item -> BeanUtil.toBean(item, AccountCapitalSourceDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1363330_1




return retData;
  }
/**
   * D7执行是否组织正式财务标准分析(公共)[8047]
   * gen by moon at 12/1/2023, 3:41:13 AM
   */
  @Trace(operationName = "D7执行是否组织正式财务标准分析(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementIsOrgOfficialAccountNomAnalyzeComRespDto implementIsOrgOfficialAccountNomAnalyzeCom(ImplementIsOrgOfficialAccountNomAnalyzeComReqDto reqDto){


      ImplementReceiveFieldInputRespDto receptionServiceRes_3 =null;
if((reqDto!= null&&  reqDto.getEndValue() !=null && reqDto.getEndValue().equals("DISABLE")||reqDto!= null&&  reqDto.getEndValue() !=null && reqDto.getEndValue().equals("OPEN_CHARGE"))) {
        //if((D7执行是否组织正式财务标准分析(公共).空间开启财务模式答案 等于 不启用 or D7执行是否组织正式财务标准分析(公共).空间开启财务模式答案 等于 开启记账))  54971

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq.setIsOrgOfficialAccountNom("FALSE");//sourceId:1363702_1_54973

    /*M7约定非组织正式财务标准[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getIsOrgOfficialAccountNom(),"D7执行是否组织正式财务标准分析(公共)-M7约定非组织正式财务标准-是否组织正式财务标准不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);



//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_2 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_1=new ImplementReceiveFieldInputReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_1.setIsOrgOfficialAccountNom(receptionServiceRes.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1363662_1_54974
    }

    /*M7接收是否组织正式财务标准值出参[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getIsOrgOfficialAccountNom(),"D7执行是否组织正式财务标准分析(公共)-M7接收是否组织正式财务标准值出参-是否组织正式财务标准不能为空",false);
      receptionServiceRes_2 = nbFinance.implementReceiveFieldInput(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
      }
else if((reqDto!= null&&  reqDto.getEndValue() !=null && reqDto.getEndValue().equals("OPEN_FINANCE"))){
       //elseif(D7执行是否组织正式财务标准分析(公共).空间开启财务模式答案 等于 开启财务)  54972

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_4 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_2=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq_2.setIsOrgOfficialAccountNom("TRUE");//sourceId:1363660_1_54975

    /*M7约定是组织正式财务标准[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getIsOrgOfficialAccountNom(),"D7执行是否组织正式财务标准分析(公共)-M7约定是组织正式财务标准-是否组织正式财务标准不能为空",false);
      receptionServiceRes_4 = nbFinance.implementReceiveFieldInput(receptionServiceReq_2);



//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_6 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_3=new ImplementReceiveFieldInputReqDto();
  if(receptionServiceRes_4!=null){
      receptionServiceReq_3.setIsOrgOfficialAccountNom(receptionServiceRes_4.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1363662_1_54976
    }

    /*M7接收是否组织正式财务标准值出参[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getIsOrgOfficialAccountNom(),"D7执行是否组织正式财务标准分析(公共)-M7接收是否组织正式财务标准值出参-是否组织正式财务标准不能为空",false);
      receptionServiceRes_6 = nbFinance.implementReceiveFieldInput(receptionServiceReq_3);


      receptionServiceRes_3 = receptionServiceRes_6;
    }
ImplementIsOrgOfficialAccountNomAnalyzeComRespDto retData = new ImplementIsOrgOfficialAccountNomAnalyzeComRespDto();
  if(receptionServiceRes_3!=null){
      retData.setIsOrgOfficialAccountNom(receptionServiceRes_3.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1363704_1
    }




return retData;
  }
/**
   * D7分析预算设置数据类型编码(公共)[8364]
   * gen by moon at 1/30/2024, 2:28:08 AM
   */
  @Trace(operationName = "D7分析预算设置数据类型编码(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AnalysisBudgetSetDataTypeComRespDto analysisBudgetSetDataTypeCom(AnalysisBudgetSetDataTypeComReqDto reqDto){


      ImplementReceiveFieldInputRespDto receptionServiceRes_3 =null;
//virtualUsage M7约定加预算/减预算  60346
      //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq.setCustomField1("ADD_BUDGET");//CUSTOM_CONVENTION//sourceId:1511302_1_60346
receptionServiceReq.setCustomField2("SUB_BUDGET");//CUSTOM_CONVENTION//sourceId:1511303_1_60346

    /*M7约定加预算/减预算[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField1(),"D7分析预算设置数据类型编码(公共)-M7约定加预算/减预算-自定义字段1不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField2(),"D7分析预算设置数据类型编码(公共)-M7约定加预算/减预算-自定义字段2不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);



if((reqDto!= null&&  reqDto.getBillTypeCode() !=null && reqDto.getBillTypeCode().equals("INCOME"))) {
        //if(D7分析预算设置数据类型编码(公共).收支类型 等于 收入)  60347

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_2 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_1=new ImplementReceiveFieldInputReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_1.setDataType(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1511295_1_60348
    }

    /*M7接收数量类型编码[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getDataType(),"D7分析预算设置数据类型编码(公共)-M7接收数量类型编码-数据类型编码不能为空",false);
      receptionServiceRes_2 = nbFinance.implementReceiveFieldInput(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
      }
else if((reqDto!= null&&  reqDto.getBillTypeCode() !=null && reqDto.getBillTypeCode().equals("SPENDING"))){
       //elseif(D7分析预算设置数据类型编码(公共).收支类型 等于 支出)  60349

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_4 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_2=new ImplementReceiveFieldInputReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_2.setDataType(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1511295_1_60350
    }

    /*M7接收数量类型编码[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getDataType(),"D7分析预算设置数据类型编码(公共)-M7接收数量类型编码-数据类型编码不能为空",false);
      receptionServiceRes_4 = nbFinance.implementReceiveFieldInput(receptionServiceReq_2);


      receptionServiceRes_3 = receptionServiceRes_4;
    }
AnalysisBudgetSetDataTypeComRespDto retData = new AnalysisBudgetSetDataTypeComRespDto();
  if(receptionServiceRes_3!=null){
      retData.setDataType(receptionServiceRes_3.getDataType());//SimpleFieldAssign//sourceId:1511304_1
    }




return retData;
  }
/**
   * D7执行目标资金来源预算设置(公共)[8379]
   * gen by moon at 2/19/2024, 12:44:36 PM
   */
  @Trace(operationName = "D7执行目标资金来源预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementTargetFundingSourceBudgetSetComRespDto implementTargetFundingSourceBudgetSetCom(ImplementTargetFundingSourceBudgetSetComReqDto reqDto){


      //virtualUsage M7执行目标预算设置【循环开始】  60462
      //ModelCode: circulationCollections
        for (TargetBudgetSetDto circulationCollectionsRes: reqDto.getTargetBudgetSetList()){

if((reqDto!= null&&  reqDto.getAddOrSubOptType() !=null && reqDto.getAddOrSubOptType().equals("ADD"))) {
        //if(D7执行目标资金来源预算设置(公共).加减操作类型 等于 加)  60463

boolean bOOLEAN ;
    OmsTargetCostset omsTargetCostset=new OmsTargetCostset();
  omsTargetCostset.setIsBudgetSeted("TRUE");//sourceId:1518539_1_60467
  if(circulationCollectionsRes!=null){
      omsTargetCostset.setTargetCostSetId(circulationCollectionsRes.getTargetCostSetId());//SimpleFieldAssign//sourceId:1516539_1_60467
omsTargetCostset.setCycleBudgetAmount(circulationCollectionsRes.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1516545_1_60467
    }

    /*7-1-07修改目标预算设置（数据库加）[8384]   */
    Assert.isNull(omsTargetCostset.getTargetCostSetId(),"D7执行目标资金来源预算设置(公共)-7-1-07修改目标预算设置（数据库加）-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset.getCycleBudgetAmount(),"D7执行目标资金来源预算设置(公共)-7-1-07修改目标预算设置（数据库加）-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset.getIsBudgetSeted(),"D7执行目标资金来源预算设置(公共)-7-1-07修改目标预算设置（数据库加）-预算是否已设置不能为空",false);
      bOOLEAN = mOmsTargetCostsetService.updateTargetBudgetSetData(omsTargetCostset)/*vcase invoke 本地 method 方法调用;*/;



ImplementTargetFinancialAccountPlusMinusExpensesComRespDto implementTargetFinancialAccountPlusMinusExpensesComRespDto = null;
    ImplementTargetFinancialAccountPlusMinusExpensesComReqDto implementTargetFinancialAccountPlusMinusExpensesComReqDto=new ImplementTargetFinancialAccountPlusMinusExpensesComReqDto();
  implementTargetFinancialAccountPlusMinusExpensesComReqDto.setAccountOptType("ADD_BUDGET");//sourceId:1519458_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setAccountCode(CommonFunctionHelper.getUid());//AUTO_GENERATE//sourceId:1519475_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setAccountTypeCode("ECOLOGICAL_ACCOUNT");//sourceId:1519478_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setCertificationStatus("AUTHENTICATED");//sourceId:1519479_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setIsBudgetAccount("TRUE");//sourceId:1519459_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setIsStatisticalAccount("FALSE");//sourceId:1519460_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setAccountObjectClass("CONTENT_TYPE");//sourceId:1519461_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1519474_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setThemeContentTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:1555047_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setDistributionSystemTypeCode("CAPITAL_SYSTEM");//sourceId:1519476_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setIsOrgOfficialAccountNom("FALSE");//sourceId:1519464_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1519477_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setBillTypeCode("INCOME");//sourceId:1519465_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setBillMethod("TALLY");//sourceId:1519480_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setBillStatus("COMPLETE");//sourceId:1519482_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setIsOriginBill("FALSE");//sourceId:1519481_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setIsButtFinance("FALSE");//sourceId:1519467_1_60557
if(reqDto!=null){
      implementTargetFinancialAccountPlusMinusExpensesComReqDto.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1555045_1_60557
      implementTargetFinancialAccountPlusMinusExpensesComReqDto.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1519462_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setAccountObjectTypeCode(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1519463_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1519473_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555046_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1519470_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1519471_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1519472_1_60557
    }
if(circulationCollectionsRes!=null){
      implementTargetFinancialAccountPlusMinusExpensesComReqDto.setBillAmount(circulationCollectionsRes.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1519466_1_60557
implementTargetFinancialAccountPlusMinusExpensesComReqDto.setCapitalSourceId(circulationCollectionsRes.getCapitalSourceId());//SimpleFieldAssign//sourceId:1519469_1_60557
      }

    /*D7执行目标财务账户加费用(公共)[8400]   */
    Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getAccountOptType(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-账户操作类型不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getAccountCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-账户标识不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getAccountTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-账户类型不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getCertificationStatus(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-认证状态不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getIsBudgetAccount(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-是否预算账户不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getIsStatisticalAccount(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-是否统计账户不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getAccountObjectClass(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-账户关联主体分类类型不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getEcologicalAccountTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-生态账户类型编码不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getAccountObjectId(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-关联归属主体ID不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getAccountObjectTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-关联归属主体类型编码不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getAccountContentCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-关联归属主体标识不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getThemeContentTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-主题内容类型编码不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getDistributionSystemTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-发行体系类型编码不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getIsOrgOfficialAccountNom(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getSubjectLifeCycle(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-主体生命周期不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getBillTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-收支类型不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getBillMethod(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-收支方式不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getBillAmount(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-账单金额不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getBillStatus(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-账单状态不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getIsOriginBill(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-是否发生方账单不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getIsButtFinance(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-是否对接财务不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getCapitalSourceId(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-冗余资金来源ID不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getBillBizStory(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-流水业务故事信息不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getOppositeLogo(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-对方logo不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto.getOppositeName(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户加费用(公共)-对方名称不能为空",false);
      implementTargetFinancialAccountPlusMinusExpensesComRespDto = implementTargetFinancialAccountPlusMinusExpensesCom(implementTargetFinancialAccountPlusMinusExpensesComReqDto)/*vcase invoke 同服务,同domain*/;



      }
else if((reqDto!= null&&  reqDto.getAddOrSubOptType() !=null && reqDto.getAddOrSubOptType().equals("SUB"))){
       //elseif(D7执行目标资金来源预算设置(公共).加减操作类型 等于 减)  60464

boolean bOOLEAN_1 ;
    OmsTargetCostset omsTargetCostset_1=new OmsTargetCostset();
  omsTargetCostset_1.setIsBudgetSeted("TRUE");//sourceId:1518541_1_60468
  if(circulationCollectionsRes!=null){
      omsTargetCostset_1.setTargetCostSetId(circulationCollectionsRes.getTargetCostSetId());//SimpleFieldAssign//sourceId:1516540_1_60468
omsTargetCostset_1.setCycleBudgetAmount(circulationCollectionsRes.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1516546_1_60468
    }

    /*7-1-07修改目标预算设置（数据库减）[8387]   */
    Assert.isNull(omsTargetCostset_1.getTargetCostSetId(),"D7执行目标资金来源预算设置(公共)-7-1-07修改目标预算设置（数据库减）-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset_1.getCycleBudgetAmount(),"D7执行目标资金来源预算设置(公共)-7-1-07修改目标预算设置（数据库减）-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_1.getIsBudgetSeted(),"D7执行目标资金来源预算设置(公共)-7-1-07修改目标预算设置（数据库减）-预算是否已设置不能为空",false);
      bOOLEAN_1 = mOmsTargetCostsetService.reduceTargetBudgetSet(omsTargetCostset_1)/*vcase invoke 本地 method 方法调用;*/;



ImplementTargetFinancialAccountPlusMinusExpensesComRespDto implementTargetFinancialAccountPlusMinusExpensesComRespDto_1 = null;
    ImplementTargetFinancialAccountPlusMinusExpensesComReqDto implementTargetFinancialAccountPlusMinusExpensesComReqDto_1=new ImplementTargetFinancialAccountPlusMinusExpensesComReqDto();
  implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setAccountOptType("DEC_BUDGET");//sourceId:1519497_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setAccountCode(CommonFunctionHelper.getUid());//AUTO_GENERATE//sourceId:1519514_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setAccountTypeCode("ECOLOGICAL_ACCOUNT");//sourceId:1519517_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setCertificationStatus("AUTHENTICATED");//sourceId:1519518_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setIsBudgetAccount("TRUE");//sourceId:1519498_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setIsStatisticalAccount("FALSE");//sourceId:1519499_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setAccountObjectClass("CONTENT_TYPE");//sourceId:1519500_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1519513_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setDistributionSystemTypeCode("CAPITAL_SYSTEM");//sourceId:1519515_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setIsOrgOfficialAccountNom("FALSE");//sourceId:1519503_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1519516_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setBillTypeCode("SPENDING");//sourceId:1519504_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setBillMethod("TALLY");//sourceId:1519519_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setBillStatus("COMPLETE");//sourceId:1519521_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setIsOriginBill("FALSE");//sourceId:1519520_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setIsButtFinance("FALSE");//sourceId:1519506_1_60558
if(reqDto!=null){
      implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1519501_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setAccountObjectTypeCode(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1519502_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1519512_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1519509_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1519510_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1519511_1_60558
    }
if(circulationCollectionsRes!=null){
      implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setBillAmount(circulationCollectionsRes.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1519505_1_60558
implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.setCapitalSourceId(circulationCollectionsRes.getCapitalSourceId());//SimpleFieldAssign//sourceId:1519508_1_60558
    }

    /*D7执行目标财务账户减费用(公共)[8400]   */
    Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getAccountOptType(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-账户操作类型不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getAccountCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-账户标识不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getAccountTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-账户类型不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getCertificationStatus(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-认证状态不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getIsBudgetAccount(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-是否预算账户不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getIsStatisticalAccount(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-是否统计账户不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getAccountObjectClass(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-账户关联主体分类类型不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getEcologicalAccountTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-生态账户类型编码不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getAccountObjectId(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-关联归属主体ID不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getAccountObjectTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-关联归属主体类型编码不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getAccountContentCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-关联归属主体标识不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getDistributionSystemTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-发行体系类型编码不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getIsOrgOfficialAccountNom(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getSubjectLifeCycle(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-主体生命周期不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getBillTypeCode(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-收支类型不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getBillMethod(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-收支方式不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getBillAmount(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-账单金额不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getBillStatus(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-账单状态不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getIsOriginBill(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-是否发生方账单不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getIsButtFinance(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-是否对接财务不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getCapitalSourceId(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-冗余资金来源ID不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getBillBizStory(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-流水业务故事信息不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getOppositeLogo(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-对方logo不能为空",false);
Assert.isNull(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1.getOppositeName(),"D7执行目标资金来源预算设置(公共)-D7执行目标财务账户减费用(公共)-对方名称不能为空",false);
      implementTargetFinancialAccountPlusMinusExpensesComRespDto_1 = implementTargetFinancialAccountPlusMinusExpensesCom(implementTargetFinancialAccountPlusMinusExpensesComReqDto_1)/*vcase invoke 同服务,同domain*/;



    }
else{
       //else  60465

//异常结束 60466
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
//virtualUsage M7执行财务【循环结束】  60469
      //ModelCode: circulationEnd
        }

ImplementTargetFundingSourceBudgetSetComRespDto retData = new ImplementTargetFundingSourceBudgetSetComRespDto();





return retData;
  }
/**
   * D7执行统计目标周期预算设置(公共)[8386]
   * gen by moon at 2/2/2024, 2:41:48 PM
   */
  @Trace(operationName = "D7执行统计目标周期预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementStatisticalTargetCycleBudgetSetComRespDto implementStatisticalTargetCycleBudgetSetCom(ImplementStatisticalTargetCycleBudgetSetComReqDto reqDto){


      OmsTargetCostset omsTargetCostset_4 =null;
OmsTargetCostset omsTargetCostset_7 =null;
      if((reqDto!= null&&  reqDto.getSubCycleList() !=null && reqDto.getSubCycleList().size()>0)) {
        //if(D7执行统计目标周期预算设置(公共).子周期列表数据集条数 大于 0)  60470

//ModelCode: circulationCollections
        for (String circulationCollectionsRes: reqDto.getSubCycleList()){

OmsTargetCostset omsTargetCostset = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1517325_1_60494
if(circulationCollectionsRes!=null){
      queryTargetBudgetSetDetailReq.setEvaObjTargetCycleId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1517326_1_60494
    }
if(reqDto!=null){
      queryTargetBudgetSetDetailReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1517328_1_60494
    }

    /*7-1-07查询当前牌目标子周期预算设置ID[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq.getBudgetCycleModeTypeCode(),"D7执行统计目标周期预算设置(公共)-7-1-07查询当前牌目标子周期预算设置ID-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getEvaObjTargetCycleId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询当前牌目标子周期预算设置ID-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getTargetCycleContentId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询当前牌目标子周期预算设置ID-关联目标内容ID不能为空",false);
      omsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsTargetCostset== null||  omsTargetCostset.getTargetCostSetId() ==null,"找不到数据，系统异常",false);


List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    QueryTargetBudgetSetListReq queryTargetBudgetSetListReq=new QueryTargetBudgetSetListReq();
  queryTargetBudgetSetListReq.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1517317_1_60481
if(circulationCollectionsRes!=null){
      queryTargetBudgetSetListReq.setEvaObjTargetCycleId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1517318_1_60481
    }
if(reqDto!=null){
      queryTargetBudgetSetListReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1517383_1_60481
queryTargetBudgetSetListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1517445_1_60481
    }

    /*7-1-07查询目标资金来源预算设置列表[8375]   */
    Assert.isNull(queryTargetBudgetSetListReq.getBudgetCycleModeTypeCode(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标资金来源预算设置列表-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getEvaObjTargetCycleId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标资金来源预算设置列表-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getTargetCycleContentId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标资金来源预算设置列表-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getEvaluationTemplateId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标资金来源预算设置列表-冗余评价模板ID不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetList(queryTargetBudgetSetListReq)/*vcase invoke 本地 method 方法调用;*/;



CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto = null;
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      calculateSumOfMultipleNumServiceComReqDto.setSumOfMultipleNumList(//objList-to-objLists
        listOmsTargetCostset.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getTargetCostSetId());//SimpleFieldAssign//sourceId:297330_2_60485
elm.setCalcPara1(item.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:297331_2_60485
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1517518_1_60485
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      Assert.isTrue(calculateSumOfMultipleNumServiceComRespDto== null||  calculateSumOfMultipleNumServiceComRespDto.getCalcResult() ==null,"找不到数据，系统异常",false);


           }
boolean bOOLEAN ;
    if(omsTargetCostset !=null&&calculateSumOfMultipleNumServiceComRespDto !=null){
          OmsTargetCostset omsTargetCostset_2=new OmsTargetCostset();
  omsTargetCostset_2.setIsBudgetSeted("TRUE");//sourceId:1518537_1_60493
  if(omsTargetCostset!=null){
      omsTargetCostset_2.setTargetCostSetId(omsTargetCostset.getTargetCostSetId());//SimpleFieldAssign//sourceId:1517337_1_60493
    }
if(calculateSumOfMultipleNumServiceComRespDto!=null){
      omsTargetCostset_2.setCycleBudgetAmount(calculateSumOfMultipleNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1517338_1_60493
    }

    /*7-1-07修改目标预算设置[8383]   */
    Assert.isNull(omsTargetCostset_2.getTargetCostSetId(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getCycleBudgetAmount(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_2.getIsBudgetSeted(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-预算是否已设置不能为空",false);
      bOOLEAN = mOmsTargetCostsetService.updateTargetBudgetSet(omsTargetCostset_2)/*vcase invoke 本地 method 方法调用;*/;



           }
//ModelCode: circulationEnd
        }

      }
else{
       //else  60471

//异常结束 60472
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
if((reqDto!= null&& reqDto.getFatherEvaObjTargetCycleId() != null &&reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("FATHER_SON_CYCLE"))) {
        //if((D7执行统计目标周期预算设置(公共).父周期被评对象目标周期ID 值不等于空  and D7执行统计目标周期预算设置(公共).周期模式类型编码 等于 父子周期))  60474

OmsTargetCostset omsTargetCostset_3 = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq_1=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq_1.setBudgetCycleModeTypeCode("PARENT_CYCLE");//sourceId:1517410_1_60495
if(reqDto!=null){
      queryTargetBudgetSetDetailReq_1.setEvaObjTargetCycleId(reqDto.getFatherEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1517411_1_60495
queryTargetBudgetSetDetailReq_1.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1517413_1_60495
    }

    /*7-1-07查询目标父周期预算设置ID[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq_1.getBudgetCycleModeTypeCode(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标父周期预算设置ID-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_1.getEvaObjTargetCycleId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标父周期预算设置ID-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_1.getTargetCycleContentId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标父周期预算设置ID-关联目标内容ID不能为空",false);
      omsTargetCostset_3 = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsTargetCostset_3== null||  omsTargetCostset_3.getTargetCostSetId() ==null,"找不到数据，系统异常",false);

      omsTargetCostset_4 = omsTargetCostset_3;
List<OmsTargetCostset> listOmsTargetCostset_2 =new ArrayList<>();
    BatchQueryTargetBudgetSetReq batchQueryTargetBudgetSetReq=new BatchQueryTargetBudgetSetReq();
  batchQueryTargetBudgetSetReq.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1517484_1_60501
if(reqDto!=null){
      batchQueryTargetBudgetSetReq.setTargetBudgetSetList(reqDto.getSubCycleList());//list-field-assign//sourceId:1517479_1_60501
batchQueryTargetBudgetSetReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1517480_1_60501
batchQueryTargetBudgetSetReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1517481_1_60501
    }

    /*7-1-07批量查询所有目标子周期预算设置[8398]   */
    Assert.isNull(batchQueryTargetBudgetSetReq.getBudgetCycleModeTypeCode(),"D7执行统计目标周期预算设置(公共)-7-1-07批量查询所有目标子周期预算设置-预算周期模型编码不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq.getTargetCycleContentId(),"D7执行统计目标周期预算设置(公共)-7-1-07批量查询所有目标子周期预算设置-关联目标内容ID不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq.getEvaluationTemplateId(),"D7执行统计目标周期预算设置(公共)-7-1-07批量查询所有目标子周期预算设置-冗余评价模板ID不能为空",false);
      listOmsTargetCostset_2 = mOmsTargetCostsetService.batchQueryTargetBudgetSet(batchQueryTargetBudgetSetReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(listOmsTargetCostset_2== null|| CollectionUtil.isEmpty(listOmsTargetCostset_2)||  listOmsTargetCostset_2 ==null|| CollectionUtil.isEmpty(listOmsTargetCostset_2)|| listOmsTargetCostset_2.size()==0 ,"找不到数据，系统异常",false);


CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_2 = null;
    if(listOmsTargetCostset_2 !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset_2)&& listOmsTargetCostset_2.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_1=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsTargetCostset_2!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset_2)&&  listOmsTargetCostset_2 !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset_2)){
      calculateSumOfMultipleNumServiceComReqDto_1.setSumOfMultipleNumList(//objList-to-objLists
        listOmsTargetCostset_2.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getTargetCostSetId());//SimpleFieldAssign//sourceId:297330_2_60502
elm.setCalcPara1(item.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:297331_2_60502
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1517518_1_60502
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_2 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;
      Assert.isTrue(calculateSumOfMultipleNumServiceComRespDto_2== null||  calculateSumOfMultipleNumServiceComRespDto_2.getCalcResult() ==null,"找不到数据，系统异常",false);


           }
boolean bOOLEAN_1 ;
    if(omsTargetCostset_3 !=null&&calculateSumOfMultipleNumServiceComRespDto_2 !=null){
          OmsTargetCostset omsTargetCostset_5=new OmsTargetCostset();
  omsTargetCostset_5.setIsBudgetSeted("TRUE");//sourceId:1518537_1_60497
  if(omsTargetCostset_3!=null){
      omsTargetCostset_5.setTargetCostSetId(omsTargetCostset_3.getTargetCostSetId());//SimpleFieldAssign//sourceId:1517337_1_60497
    }
if(calculateSumOfMultipleNumServiceComRespDto_2!=null){
      omsTargetCostset_5.setCycleBudgetAmount(calculateSumOfMultipleNumServiceComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1517338_1_60497
    }

    /*7-1-07修改目标预算设置[8383]   */
    Assert.isNull(omsTargetCostset_5.getTargetCostSetId(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset_5.getCycleBudgetAmount(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_5.getIsBudgetSeted(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-预算是否已设置不能为空",false);
      bOOLEAN_1 = mOmsTargetCostsetService.updateTargetBudgetSet(omsTargetCostset_5)/*vcase invoke 本地 method 方法调用;*/;



           }
      }

if((reqDto!= null&& reqDto.getMidEvaObjTargetCycleId() != null &&reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("FATHER_SON_CYCLE"))) {
        //if((D7执行统计目标周期预算设置(公共).中期被评对象目标周期ID 值不等于空  and D7执行统计目标周期预算设置(公共).周期模式类型编码 等于 父子周期))  60478

OmsTargetCostset omsTargetCostset_6 = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq_2=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq_2.setBudgetCycleModeTypeCode("METAPHASE");//sourceId:1517423_1_60496
if(reqDto!=null){
      queryTargetBudgetSetDetailReq_2.setEvaObjTargetCycleId(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1517424_1_60496
queryTargetBudgetSetDetailReq_2.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1517426_1_60496
    }

    /*7-1-07查询目标中期预算设置ID[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq_2.getBudgetCycleModeTypeCode(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标中期预算设置ID-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getEvaObjTargetCycleId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标中期预算设置ID-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getTargetCycleContentId(),"D7执行统计目标周期预算设置(公共)-7-1-07查询目标中期预算设置ID-关联目标内容ID不能为空",false);
      omsTargetCostset_6 = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsTargetCostset_6== null||  omsTargetCostset_6.getTargetCostSetId() ==null,"找不到数据，系统异常",false);

      omsTargetCostset_7 = omsTargetCostset_6;
List<OmsTargetCostset> listOmsTargetCostset_4 =new ArrayList<>();
    BatchQueryTargetBudgetSetReq batchQueryTargetBudgetSetReq_1=new BatchQueryTargetBudgetSetReq();
  batchQueryTargetBudgetSetReq_1.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1517484_1_60506
if(reqDto!=null){
      batchQueryTargetBudgetSetReq_1.setTargetBudgetSetList(reqDto.getMidTermSubCycleList());//list-field-assign//sourceId:1517479_1_60506
batchQueryTargetBudgetSetReq_1.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1517480_1_60506
batchQueryTargetBudgetSetReq_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1517481_1_60506
    }

    /*7-1-07批量查询所有目标子周期预算设置[8398]   */
    Assert.isNull(batchQueryTargetBudgetSetReq_1.getBudgetCycleModeTypeCode(),"D7执行统计目标周期预算设置(公共)-7-1-07批量查询所有目标子周期预算设置-预算周期模型编码不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq_1.getTargetCycleContentId(),"D7执行统计目标周期预算设置(公共)-7-1-07批量查询所有目标子周期预算设置-关联目标内容ID不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq_1.getEvaluationTemplateId(),"D7执行统计目标周期预算设置(公共)-7-1-07批量查询所有目标子周期预算设置-冗余评价模板ID不能为空",false);
      listOmsTargetCostset_4 = mOmsTargetCostsetService.batchQueryTargetBudgetSet(batchQueryTargetBudgetSetReq_1)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(listOmsTargetCostset_4== null|| CollectionUtil.isEmpty(listOmsTargetCostset_4)||  listOmsTargetCostset_4 ==null|| CollectionUtil.isEmpty(listOmsTargetCostset_4)|| listOmsTargetCostset_4.size()==0 ,"找不到数据，系统异常",false);


CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_3 = null;
    if(listOmsTargetCostset_4 !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset_4)&& listOmsTargetCostset_4.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_2=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsTargetCostset_4!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset_4)&&  listOmsTargetCostset_4 !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset_4)){
      calculateSumOfMultipleNumServiceComReqDto_2.setSumOfMultipleNumList(//objList-to-objLists
        listOmsTargetCostset_4.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getTargetCostSetId());//SimpleFieldAssign//sourceId:297330_2_60505
elm.setCalcPara1(item.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:297331_2_60505
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1517518_1_60505
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_3 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;
      Assert.isTrue(calculateSumOfMultipleNumServiceComRespDto_3== null||  calculateSumOfMultipleNumServiceComRespDto_3.getCalcResult() ==null,"找不到数据，系统异常",false);


           }
boolean bOOLEAN_2 ;
    if(omsTargetCostset_6 !=null&&calculateSumOfMultipleNumServiceComRespDto_3 !=null){
          OmsTargetCostset omsTargetCostset_8=new OmsTargetCostset();
  omsTargetCostset_8.setIsBudgetSeted("TRUE");//sourceId:1518537_1_60498
  if(omsTargetCostset_6!=null){
      omsTargetCostset_8.setTargetCostSetId(omsTargetCostset_6.getTargetCostSetId());//SimpleFieldAssign//sourceId:1517337_1_60498
    }
if(calculateSumOfMultipleNumServiceComRespDto_3!=null){
      omsTargetCostset_8.setCycleBudgetAmount(calculateSumOfMultipleNumServiceComRespDto_3.getCalcResult());//SimpleFieldAssign//sourceId:1517338_1_60498
    }

    /*7-1-07修改目标预算设置[8383]   */
    Assert.isNull(omsTargetCostset_8.getTargetCostSetId(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset_8.getCycleBudgetAmount(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_8.getIsBudgetSeted(),"D7执行统计目标周期预算设置(公共)-7-1-07修改目标预算设置-预算是否已设置不能为空",false);
      bOOLEAN_2 = mOmsTargetCostsetService.updateTargetBudgetSet(omsTargetCostset_8)/*vcase invoke 本地 method 方法调用;*/;



           }
      }
ImplementStatisticalTargetCycleBudgetSetComRespDto retData = new ImplementStatisticalTargetCycleBudgetSetComRespDto();
  if(omsTargetCostset_4!=null){
      retData.setTargetTopCostSetId(omsTargetCostset_4.getTargetCostSetId());//SimpleFieldAssign//sourceId:1518423_1
    }
if(omsTargetCostset_7!=null){
      retData.setTargetMidCostSetId(omsTargetCostset_7.getTargetCostSetId());//SimpleFieldAssign//sourceId:1518422_1
    }




return retData;
  }
/**
   * D7执行目标财务账户加减费用(公共)[8400]
   * gen by moon at 5/27/2024, 1:20:10 PM
   */
  @Trace(operationName = "D7执行目标财务账户加减费用(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementTargetFinancialAccountPlusMinusExpensesComRespDto implementTargetFinancialAccountPlusMinusExpensesCom(ImplementTargetFinancialAccountPlusMinusExpensesComReqDto reqDto){


      if((reqDto!= null&& reqDto.getBillAmount() != null )) {
        //if(D7执行目标财务账户加减费用(公共).账单金额 值不等于空 )  60509

ImplementInitializeFinanceAccountComRespDto implementInitializeFinanceAccountComRespDto = null;
          ImplementInitializeFinanceAccountComReqDto implementInitializeFinanceAccountComReqDto=new ImplementInitializeFinanceAccountComReqDto();
  implementInitializeFinanceAccountComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1517559_1_60511
implementInitializeFinanceAccountComReqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1517560_1_60511
if(reqDto!=null){
      implementInitializeFinanceAccountComReqDto.setAccountCode(reqDto.getAccountCode());//SimpleFieldAssign//sourceId:1517546_1_60511
implementInitializeFinanceAccountComReqDto.setCertificationStatus(reqDto.getCertificationStatus());//SimpleFieldAssign//sourceId:1517547_1_60511
implementInitializeFinanceAccountComReqDto.setAccountTypeCode(reqDto.getAccountTypeCode());//SimpleFieldAssign//sourceId:1517548_1_60511
implementInitializeFinanceAccountComReqDto.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1517549_1_60511
implementInitializeFinanceAccountComReqDto.setIsStatisticalAccount(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1517562_1_60511
implementInitializeFinanceAccountComReqDto.setEcologicalAccountTypeCode(reqDto.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1517550_1_60511
implementInitializeFinanceAccountComReqDto.setAccountObjectClass(reqDto.getAccountObjectClass());//SimpleFieldAssign//sourceId:1517551_1_60511
implementInitializeFinanceAccountComReqDto.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1555042_1_60511
implementInitializeFinanceAccountComReqDto.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1517552_1_60511
implementInitializeFinanceAccountComReqDto.setAccountObjectTypeCode(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1517553_1_60511
implementInitializeFinanceAccountComReqDto.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1517554_1_60511
implementInitializeFinanceAccountComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1551806_1_60511
implementInitializeFinanceAccountComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1551805_1_60511
implementInitializeFinanceAccountComReqDto.setDistributionSystemTypeCode(reqDto.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1517555_1_60511
implementInitializeFinanceAccountComReqDto.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1517556_1_60511
implementInitializeFinanceAccountComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1517557_1_60511
    }

    /*D7执行初始化账户(公共)[7678]   */
    Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountCode(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-账户标识不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getCertificationStatus(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-认证状态不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountTypeCode(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-账户类型不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getIsBudgetAccount(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-是否预算账户不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getIsStatisticalAccount(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-是否统计账户不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getEcologicalAccountTypeCode(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-生态账户类型编码不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountObjectClass(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-账户关联主体分类类型不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountObjectId(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-关联归属主体ID不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountObjectTypeCode(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-关联归属主体类型编码不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountContentCode(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-关联归属主体标识不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getDistributionSystemTypeCode(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-发行体系类型编码不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getIsOrgOfficialAccountNom(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getSubjectLifeCycle(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-主体生命周期不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getSpaceId(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-创建于空间ID不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAppId(),"D7执行目标财务账户加减费用(公共)-D7执行初始化账户(公共)-创建于联盟应用ID不能为空",false);
      implementInitializeFinanceAccountComRespDto = implementInitializeFinanceAccountCom(implementInitializeFinanceAccountComReqDto)/*vcase invoke 同服务,同domain*/;



ImplementBillAndAccountComRespDto implementBillAndAccountComRespDto = null;
    if(implementInitializeFinanceAccountComRespDto !=null){
    ImplementBillAndAccountComReqDto implementBillAndAccountComReqDto=new ImplementBillAndAccountComReqDto();
  if(reqDto!=null){
      implementBillAndAccountComReqDto.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566294_1_62068
implementBillAndAccountComReqDto.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1566295_1_62068
implementBillAndAccountComReqDto.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1566263_1_62068
implementBillAndAccountComReqDto.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1566264_1_62068
implementBillAndAccountComReqDto.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1566265_1_62068
implementBillAndAccountComReqDto.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1570287_1_62068
implementBillAndAccountComReqDto.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1570288_1_62068
implementBillAndAccountComReqDto.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1570289_1_62068
implementBillAndAccountComReqDto.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1570290_1_62068
implementBillAndAccountComReqDto.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1566289_1_62068
implementBillAndAccountComReqDto.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1566290_1_62068
implementBillAndAccountComReqDto.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1566291_1_62068
implementBillAndAccountComReqDto.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1566292_1_62068
implementBillAndAccountComReqDto.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566274_1_62068
implementBillAndAccountComReqDto.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566275_1_62068
implementBillAndAccountComReqDto.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1570292_1_62068
implementBillAndAccountComReqDto.setOppositeOpeningBankName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1570293_1_62068
implementBillAndAccountComReqDto.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1570291_1_62068
implementBillAndAccountComReqDto.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1566279_1_62068
implementBillAndAccountComReqDto.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1570294_1_62068
implementBillAndAccountComReqDto.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1570295_1_62068
implementBillAndAccountComReqDto.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1570296_1_62068
implementBillAndAccountComReqDto.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1570297_1_62068
implementBillAndAccountComReqDto.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1566284_1_62068
implementBillAndAccountComReqDto.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1570299_1_62068
    }
if(implementInitializeFinanceAccountComRespDto!=null){
      implementBillAndAccountComReqDto.setBillAccountId(implementInitializeFinanceAccountComRespDto.getAccountId());//SimpleFieldAssign//sourceId:1566266_1_62068
    }

    /*D7执行账户账单处理(公共)[8551]   */
Assert.isNull(implementBillAndAccountComReqDto.getBillAmount(),"D7执行目标财务账户加减费用(公共)-D7执行账户账单处理(公共)-账单金额不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillTypeCode(),"D7执行目标财务账户加减费用(公共)-D7执行账户账单处理(公共)-收支类型不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getIsOriginBill(),"D7执行目标财务账户加减费用(公共)-D7执行账户账单处理(公共)-是否发生方账单不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getIsButtFinance(),"D7执行目标财务账户加减费用(公共)-D7执行账户账单处理(公共)-是否对接财务不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillBizStory(),"D7执行目标财务账户加减费用(公共)-D7执行账户账单处理(公共)-流水业务故事信息不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillAccountId(),"D7执行目标财务账户加减费用(公共)-D7执行账户账单处理(公共)-账单归属账户ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillMethod(),"D7执行目标财务账户加减费用(公共)-D7执行账户账单处理(公共)-收支方式不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillStatus(),"D7执行目标财务账户加减费用(公共)-D7执行账户账单处理(公共)-账单状态不能为空",false);
      implementBillAndAccountComRespDto = implementBillAndAccountCom(implementBillAndAccountComReqDto)/*vcase invoke 同服务,同domain*/;



           }
    }
ImplementTargetFinancialAccountPlusMinusExpensesComRespDto retData = new ImplementTargetFinancialAccountPlusMinusExpensesComRespDto();





return retData;
  }
/**
   * D7计算并新增预算资金来源占比(公共)[8406]
   * gen by moon at 6/1/2024, 1:22:32 AM
   */
  @Trace(operationName = "D7计算并新增预算资金来源占比(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public CalculateAndCreateBudgetSourceProportionComRespDto calculateAndCreateBudgetSourceProportionCom(CalculateAndCreateBudgetSourceProportionComReqDto reqDto){


      //virtualUsage M7-执行接收字段入参（财务）  69406
      //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq.setCustomField2("100");//CUSTOM_CONVENTION//sourceId:1830657_1_69406
receptionServiceReq.setCustomField3("PARENT_CYCLE");//CUSTOM_CONVENTION//sourceId:1830660_1_69406
if(reqDto!=null){
      receptionServiceReq.setPeriodicModeTypeCode(reqDto.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:1519453_1_69406
receptionServiceReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1518525_1_69406
receptionServiceReq.setSubCycleList(reqDto.getSubCycleList());//list-field-assign//sourceId:1519428_1_69406
receptionServiceReq.setCustomField1(reqDto.getTargetTopCostSetId());//SimpleFieldAssign//sourceId:1518545_1_69406
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823775_1_69406
    }

    /*M7-执行接收字段入参（财务）[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getPeriodicModeTypeCode(),"D7计算并新增预算资金来源占比(公共)-M7-执行接收字段入参（财务）-周期模式类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentId(),"D7计算并新增预算资金来源占比(公共)-M7-执行接收字段入参（财务）-关联目标内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D7计算并新增预算资金来源占比(公共)-M7-执行接收字段入参（财务）-评价模板ID不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField2(),"D7计算并新增预算资金来源占比(公共)-M7-执行接收字段入参（财务）-自定义字段2不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField3(),"D7计算并新增预算资金来源占比(公共)-M7-执行接收字段入参（财务）-自定义字段3不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);



      //virtualUsage D2查询财务小数规则详情(公共)  69279
      QueryFinaceDecimalPointDetailComRespDto queryFinaceDecimalPointDetailComRespDto = null;
    QueryFinaceDecimalPointDetailComReqDto queryFinaceDecimalPointDetailComReqDto=new QueryFinaceDecimalPointDetailComReqDto();
  if(reqDto!=null){
      queryFinaceDecimalPointDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823970_1_69279
    }

    /*D2查询财务小数规则详情(公共)[9673]   */
    Assert.isNull(queryFinaceDecimalPointDetailComReqDto.getResultAspObjId(),"D7计算并新增预算资金来源占比(公共)-D2查询财务小数规则详情(公共)-开通对象ID不能为空",false);
      queryFinaceDecimalPointDetailComRespDto = fwCompConfSchemeClient.queryFinaceDecimalPointDetailCom(queryFinaceDecimalPointDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



      if((reqDto!= null&&  reqDto.getSubCycleList() !=null && reqDto.getSubCycleList().size()>0)) {
        //if(D7计算并新增预算资金来源占比(公共).子周期列表数据集条数 大于 0)  60516

List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    BatchQueryTargetBudgetSetReq batchQueryTargetBudgetSetReq=new BatchQueryTargetBudgetSetReq();
  batchQueryTargetBudgetSetReq.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1551826_1_61436
batchQueryTargetBudgetSetReq.setIsArchive("FALSE");//sourceId:1551829_1_61436
if(reqDto!=null){
      batchQueryTargetBudgetSetReq.setTargetBudgetSetList(reqDto.getSubCycleList());//list-field-assign//sourceId:1551822_1_61436
batchQueryTargetBudgetSetReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1551830_1_61436
    }

    /*7-1-07批量查询子周期资金来源预算设置列表(用于循环发牌)[8398]   */
    Assert.isNull(batchQueryTargetBudgetSetReq.getBudgetCycleModeTypeCode(),"D7计算并新增预算资金来源占比(公共)-7-1-07批量查询子周期资金来源预算设置列表(用于循环发牌)-预算周期模型编码不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq.getTargetCycleContentId(),"D7计算并新增预算资金来源占比(公共)-7-1-07批量查询子周期资金来源预算设置列表(用于循环发牌)-关联目标内容ID不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq.getIsArchive(),"D7计算并新增预算资金来源占比(公共)-7-1-07批量查询子周期资金来源预算设置列表(用于循环发牌)-是否存档不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.batchQueryTargetBudgetSet(batchQueryTargetBudgetSetReq)/*vcase invoke 本地 method 方法调用;*/;



//ModelCode: circulationCollections
        for (OmsTargetCostset circulationCollectionsRes: listOmsTargetCostset){

OmsTargetCostset omsTargetCostset = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1518510_1_60521
if(circulationCollectionsRes!=null){
      queryTargetBudgetSetDetailReq.setEvaObjTargetCycleId(circulationCollectionsRes.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1518511_1_60521
    }
if(reqDto!=null){
      queryTargetBudgetSetDetailReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1518513_1_60521
    }

    /*7-1-07查询目标子周期预算设置[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq.getBudgetCycleModeTypeCode(),"D7计算并新增预算资金来源占比(公共)-7-1-07查询目标子周期预算设置-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getEvaObjTargetCycleId(),"D7计算并新增预算资金来源占比(公共)-7-1-07查询目标子周期预算设置-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getTargetCycleContentId(),"D7计算并新增预算资金来源占比(公共)-7-1-07查询目标子周期预算设置-关联目标内容ID不能为空",false);
      omsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsTargetCostset== null||  omsTargetCostset.getCycleBudgetAmount() ==null,"找不到数据，系统异常",false);


if((omsTargetCostset!= null&& omsTargetCostset.getCycleBudgetAmount() == 0)) {
        //if(7-1-07查询资金来源所在目标子周期预算设置.周期预算金额 等于 0)  61437

//异常结束 61438
      throw new BizException("CC10000290","对不起，目标周期预算金额不能为“0”，请重新设置！",false);
      }
CalculateDivisionOfTwoNumComRespDto calculateDivisionOfTwoNumComRespDto = null;
    if(omsTargetCostset !=null){
          CalculateDivisionOfTwoNumComReqDto calculateDivisionOfTwoNumComReqDto=new CalculateDivisionOfTwoNumComReqDto();
  calculateDivisionOfTwoNumComReqDto.setDecimalPointRules(Long.valueOf(10));//CUSTOM_CONVENTION//sourceId:1518530_1_60522
calculateDivisionOfTwoNumComReqDto.setDecimalDigitsLastRules("MALING");//sourceId:1518531_1_60522
if(circulationCollectionsRes!=null){
      calculateDivisionOfTwoNumComReqDto.setCalcPara1(circulationCollectionsRes.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1518527_1_60522
    }
if(omsTargetCostset!=null){
      calculateDivisionOfTwoNumComReqDto.setCalcPara2(omsTargetCostset.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1518528_1_60522
    }

    /*D4-计算两个数相除服务(公共)[4841]   */
    Assert.isNull(calculateDivisionOfTwoNumComReqDto.getCalcPara1(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数相除服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getCalcPara2(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数相除服务(公共)-计算入参2不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数相除服务(公共)-小数点规则不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数相除服务(公共)-小数最后一位规则不能为空",false);
      calculateDivisionOfTwoNumComRespDto = fwCalcCalculationRulesClient.calculateDivisionOfTwoNumCom(calculateDivisionOfTwoNumComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateMultiplyTwoValuesComRespDto calculateMultiplyTwoValuesComRespDto = null;
    if(calculateDivisionOfTwoNumComRespDto !=null){
          CalculateMultiplyTwoValuesComReqDto calculateMultiplyTwoValuesComReqDto=new CalculateMultiplyTwoValuesComReqDto();
  calculateMultiplyTwoValuesComReqDto.setComFloatField2(Double.valueOf("100"));//CUSTOM_CONVENTION//sourceId:1551810_1_61434
calculateMultiplyTwoValuesComReqDto.setDecimalPointRules(Long.valueOf(10));//CUSTOM_CONVENTION//sourceId:1551812_1_61434
calculateMultiplyTwoValuesComReqDto.setDecimalDigitsLastRules("ROUNDED");//sourceId:1551813_1_61434
    if(calculateDivisionOfTwoNumComRespDto !=null){
      calculateMultiplyTwoValuesComReqDto.setComFloatField1(calculateDivisionOfTwoNumComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1551809_1_61434
    }

    /*D4-计算两个数值相乘服务(公共)[5443]   */
    Assert.isNull(calculateMultiplyTwoValuesComReqDto.getComFloatField1(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数值相乘服务(公共)-通用数值字段1（小数型）不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getComFloatField2(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数值相乘服务(公共)-通用数值字段2（小数型）不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数值相乘服务(公共)-小数点规则不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数值相乘服务(公共)-小数最后一位规则不能为空",false);
      calculateMultiplyTwoValuesComRespDto = fwCalcInterfaceModeClient.calculateMultiplyTwoValuesCom(calculateMultiplyTwoValuesComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementNumericalAccuracyProcessingComRespDto implementNumericalAccuracyProcessingComRespDto = null;
    if(calculateMultiplyTwoValuesComRespDto !=null){
          ImplementNumericalAccuracyProcessingComReqDto implementNumericalAccuracyProcessingComReqDto=new ImplementNumericalAccuracyProcessingComReqDto();
  implementNumericalAccuracyProcessingComReqDto.setDecimalPointRules(Long.valueOf(2));//CUSTOM_CONVENTION//sourceId:1823359_1_69266
implementNumericalAccuracyProcessingComReqDto.setDecimalDigitsLastRules("MALING");//sourceId:1823360_1_69266
    if(calculateMultiplyTwoValuesComRespDto !=null){
      implementNumericalAccuracyProcessingComReqDto.setComFloatField(calculateMultiplyTwoValuesComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1823358_1_69266
    }

    /*D2执行数值精度处理(公共)[9447]   */
    Assert.isNull(implementNumericalAccuracyProcessingComReqDto.getComFloatField(),"D7计算并新增预算资金来源占比(公共)-D2执行数值精度处理(公共)-通用数值字段（小数型）不能为空",false);
Assert.isNull(implementNumericalAccuracyProcessingComReqDto.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D2执行数值精度处理(公共)-小数点规则不能为空",false);
Assert.isNull(implementNumericalAccuracyProcessingComReqDto.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D2执行数值精度处理(公共)-小数最后一位规则不能为空",false);
      implementNumericalAccuracyProcessingComRespDto = fwCompBusinessInterfaceModeClient.implementNumericalAccuracyProcessingCom(implementNumericalAccuracyProcessingComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
boolean bOOLEAN ;
    if(implementNumericalAccuracyProcessingComRespDto !=null){
          OmsTargetCostset omsTargetCostset_2=new OmsTargetCostset();
  if(circulationCollectionsRes!=null){
      omsTargetCostset_2.setTargetCostSetId(circulationCollectionsRes.getTargetCostSetId());//SimpleFieldAssign//sourceId:1518532_1_60523
    }
if(implementNumericalAccuracyProcessingComRespDto!=null){
      omsTargetCostset_2.setBudgetRate(implementNumericalAccuracyProcessingComRespDto.getComFloatField());//SimpleFieldAssign//sourceId:1518536_1_60523
    }

    /*7-1-07修改目标预算设置[8383]   */
    Assert.isNull(omsTargetCostset_2.getTargetCostSetId(),"D7计算并新增预算资金来源占比(公共)-7-1-07修改目标预算设置-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getBudgetRate(),"D7计算并新增预算资金来源占比(公共)-7-1-07修改目标预算设置-预算金额占比不能为空",false);
      bOOLEAN = mOmsTargetCostsetService.updateTargetBudgetSet(omsTargetCostset_2)/*vcase invoke 本地 method 方法调用;*/;



           }
//ModelCode: circulationEnd
        }

      }
else{
       //else  60517

//异常结束 60518
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
if((reqDto!= null&& reqDto.getTargetTopCostSetId() != null &&reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("FATHER_SON_CYCLE"))) {
        //if((D7计算并新增预算资金来源占比(公共).目标父周期预算设置ID 值不等于空  and D7计算并新增预算资金来源占比(公共).周期模式类型编码 等于 父子周期))  60525

OmsTargetCostset omsTargetCostset_3 = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq_1=new QueryTargetBudgetSetDetailReq();
  if(reqDto!=null){
      queryTargetBudgetSetDetailReq_1.setTargetCostSetId(reqDto.getTargetTopCostSetId());//SimpleFieldAssign//sourceId:1518925_1_60547
queryTargetBudgetSetDetailReq_1.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1518929_1_60547
    }

    /*7-1-07查询目标父周期预算设置详情[8376]   */
Assert.isNull(queryTargetBudgetSetDetailReq_1.getTargetCycleContentId(),"D7计算并新增预算资金来源占比(公共)-7-1-07查询目标父周期预算设置详情-关联目标内容ID不能为空",false);
      omsTargetCostset_3 = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsTargetCostset_3== null||  omsTargetCostset_3.getCycleBudgetAmount() ==null,"找不到数据，系统异常",false);


//ModelCode: circulationCollections
        for (String circulationCollectionsRes_2: reqDto.getSubCycleList()){

OmsTargetCostset omsTargetCostset_5 = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq_2=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq_2.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1518510_1_60552
if(circulationCollectionsRes_2!=null){
      queryTargetBudgetSetDetailReq_2.setEvaObjTargetCycleId(circulationCollectionsRes_2);//SimpleFieldAssign//sourceId:1518511_1_60552
    }
if(reqDto!=null){
      queryTargetBudgetSetDetailReq_2.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1518513_1_60552
    }

    /*7-1-07查询目标子周期预算设置[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq_2.getBudgetCycleModeTypeCode(),"D7计算并新增预算资金来源占比(公共)-7-1-07查询目标子周期预算设置-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getEvaObjTargetCycleId(),"D7计算并新增预算资金来源占比(公共)-7-1-07查询目标子周期预算设置-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getTargetCycleContentId(),"D7计算并新增预算资金来源占比(公共)-7-1-07查询目标子周期预算设置-关联目标内容ID不能为空",false);
      omsTargetCostset_5 = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsTargetCostset_5== null||  omsTargetCostset_5.getCycleBudgetAmount() ==null,"找不到数据，系统异常",false);


if((omsTargetCostset_5!= null&& omsTargetCostset_5.getCycleBudgetAmount() == 0)) {
        //if(7-1-07查询目标子周期预算设置.周期预算金额 等于 0)  61439

//异常结束 61440
      throw new BizException("CC10000290","对不起，目标周期预算金额不能为“0”，请重新设置！",false);
      }
CalculateDivisionOfTwoNumComRespDto calculateDivisionOfTwoNumComRespDto_2 = null;
    if(omsTargetCostset_5 !=null&&omsTargetCostset_3 !=null){
          CalculateDivisionOfTwoNumComReqDto calculateDivisionOfTwoNumComReqDto_1=new CalculateDivisionOfTwoNumComReqDto();
  calculateDivisionOfTwoNumComReqDto_1.setDecimalPointRules(Long.valueOf(10));//CUSTOM_CONVENTION//sourceId:1518530_1_60549
calculateDivisionOfTwoNumComReqDto_1.setDecimalDigitsLastRules("MALING");//sourceId:1518531_1_60549
if(omsTargetCostset_5!=null){
      calculateDivisionOfTwoNumComReqDto_1.setCalcPara1(omsTargetCostset_5.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1518527_1_60549
    }
if(omsTargetCostset_3!=null){
      calculateDivisionOfTwoNumComReqDto_1.setCalcPara2(omsTargetCostset_3.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1518528_1_60549
    }

    /*D4-计算两个数相除服务(公共)[4841]   */
    Assert.isNull(calculateDivisionOfTwoNumComReqDto_1.getCalcPara1(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数相除服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto_1.getCalcPara2(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数相除服务(公共)-计算入参2不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto_1.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数相除服务(公共)-小数点规则不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto_1.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数相除服务(公共)-小数最后一位规则不能为空",false);
      calculateDivisionOfTwoNumComRespDto_2 = fwCalcCalculationRulesClient.calculateDivisionOfTwoNumCom(calculateDivisionOfTwoNumComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateMultiplyTwoValuesComRespDto calculateMultiplyTwoValuesComRespDto_2 = null;
    if(calculateDivisionOfTwoNumComRespDto_2 !=null){
          CalculateMultiplyTwoValuesComReqDto calculateMultiplyTwoValuesComReqDto_1=new CalculateMultiplyTwoValuesComReqDto();
  calculateMultiplyTwoValuesComReqDto_1.setComFloatField2(Double.valueOf("100"));//CUSTOM_CONVENTION//sourceId:1551810_1_61435
calculateMultiplyTwoValuesComReqDto_1.setDecimalPointRules(Long.valueOf(10));//CUSTOM_CONVENTION//sourceId:1551812_1_61435
calculateMultiplyTwoValuesComReqDto_1.setDecimalDigitsLastRules("ROUNDED");//sourceId:1551813_1_61435
if(calculateDivisionOfTwoNumComRespDto_2!=null){
      calculateMultiplyTwoValuesComReqDto_1.setComFloatField1(calculateDivisionOfTwoNumComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1551809_1_61435
    }

    /*D4-计算两个数值相乘服务(公共)[5443]   */
    Assert.isNull(calculateMultiplyTwoValuesComReqDto_1.getComFloatField1(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数值相乘服务(公共)-通用数值字段1（小数型）不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto_1.getComFloatField2(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数值相乘服务(公共)-通用数值字段2（小数型）不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto_1.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数值相乘服务(公共)-小数点规则不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto_1.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D4-计算两个数值相乘服务(公共)-小数最后一位规则不能为空",false);
      calculateMultiplyTwoValuesComRespDto_2 = fwCalcInterfaceModeClient.calculateMultiplyTwoValuesCom(calculateMultiplyTwoValuesComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementNumericalAccuracyProcessingComRespDto implementNumericalAccuracyProcessingComRespDto_2 = null;
    if(calculateMultiplyTwoValuesComRespDto_2 !=null){
          ImplementNumericalAccuracyProcessingComReqDto implementNumericalAccuracyProcessingComReqDto_1=new ImplementNumericalAccuracyProcessingComReqDto();
  implementNumericalAccuracyProcessingComReqDto_1.setDecimalPointRules(Long.valueOf(2));//CUSTOM_CONVENTION//sourceId:1823359_1_69267
implementNumericalAccuracyProcessingComReqDto_1.setDecimalDigitsLastRules("MALING");//sourceId:1823360_1_69267
if(calculateMultiplyTwoValuesComRespDto_2!=null){
      implementNumericalAccuracyProcessingComReqDto_1.setComFloatField(calculateMultiplyTwoValuesComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1823358_1_69267
    }

    /*D2执行数值精度处理(公共)[9447]   */
    Assert.isNull(implementNumericalAccuracyProcessingComReqDto_1.getComFloatField(),"D7计算并新增预算资金来源占比(公共)-D2执行数值精度处理(公共)-通用数值字段（小数型）不能为空",false);
Assert.isNull(implementNumericalAccuracyProcessingComReqDto_1.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D2执行数值精度处理(公共)-小数点规则不能为空",false);
Assert.isNull(implementNumericalAccuracyProcessingComReqDto_1.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D2执行数值精度处理(公共)-小数最后一位规则不能为空",false);
      implementNumericalAccuracyProcessingComRespDto_2 = fwCompBusinessInterfaceModeClient.implementNumericalAccuracyProcessingCom(implementNumericalAccuracyProcessingComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
boolean bOOLEAN_1 ;
    if(omsTargetCostset_5 !=null&&implementNumericalAccuracyProcessingComRespDto_2 !=null){
          OmsTargetCostset omsTargetCostset_6=new OmsTargetCostset();
  if(omsTargetCostset_5!=null){
      omsTargetCostset_6.setTargetCostSetId(omsTargetCostset_5.getTargetCostSetId());//SimpleFieldAssign//sourceId:1518532_1_60550
    }
if(implementNumericalAccuracyProcessingComRespDto_2!=null){
      omsTargetCostset_6.setBudgetRate(implementNumericalAccuracyProcessingComRespDto_2.getComFloatField());//SimpleFieldAssign//sourceId:1518536_1_60550
    }

    /*7-1-07修改目标预算设置[8383]   */
    Assert.isNull(omsTargetCostset_6.getTargetCostSetId(),"D7计算并新增预算资金来源占比(公共)-7-1-07修改目标预算设置-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset_6.getBudgetRate(),"D7计算并新增预算资金来源占比(公共)-7-1-07修改目标预算设置-预算金额占比不能为空",false);
      bOOLEAN_1 = mOmsTargetCostsetService.updateTargetBudgetSet(omsTargetCostset_6)/*vcase invoke 本地 method 方法调用;*/;



           }
ImplementRevisedBudgetRatioComRespDto implementRevisedBudgetRatioComRespDto = null;
    if(omsTargetCostset_3 !=null&&queryFinaceDecimalPointDetailComRespDto !=null){
          ImplementRevisedBudgetRatioComReqDto implementRevisedBudgetRatioComReqDto=new ImplementRevisedBudgetRatioComReqDto();
  implementRevisedBudgetRatioComReqDto.setRevisedBudgetRatioTypeCode("BUDGET_SET");//sourceId:1831281_1_69273
  implementRevisedBudgetRatioComReqDto.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1823728_1_69273
if(circulationCollectionsRes_2!=null){
      implementRevisedBudgetRatioComReqDto.setEvaObjTargetCycleId(circulationCollectionsRes_2);//SimpleFieldAssign//sourceId:1823730_1_69273
    }
if(omsTargetCostset_3!=null){
      implementRevisedBudgetRatioComReqDto.setEvaluationTemplateId(omsTargetCostset_3.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823731_1_69273
    }
if(queryFinaceDecimalPointDetailComRespDto!=null){
      implementRevisedBudgetRatioComReqDto.setDecimalPointRules(queryFinaceDecimalPointDetailComRespDto.getFinaceDecimalPoint());//SimpleFieldAssign//sourceId:1823732_1_69273
implementRevisedBudgetRatioComReqDto.setDecimalDigitsLastRules(queryFinaceDecimalPointDetailComRespDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1823733_1_69273
    }

    /*D7执行修正预算来源占比(公共)[9672]   */
    Assert.isNull(implementRevisedBudgetRatioComReqDto.getRevisedBudgetRatioTypeCode(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-修正预算占比类型不能为空",false);
    Assert.isNull(implementRevisedBudgetRatioComReqDto.getBudgetCycleModeTypeCode(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getEvaObjTargetCycleId(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getEvaluationTemplateId(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-评价模板ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-小数点规则不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-小数最后一位规则不能为空",false);
      implementRevisedBudgetRatioComRespDto = implementRevisedBudgetRatioCom(implementRevisedBudgetRatioComReqDto)/*vcase invoke 同服务,同domain*/;



           }
//ModelCode: circulationEnd
        }

ImplementRevisedBudgetRatioComRespDto implementRevisedBudgetRatioComRespDto_1 = null;
    if(omsTargetCostset_3 !=null&&queryFinaceDecimalPointDetailComRespDto !=null){
          ImplementRevisedBudgetRatioComReqDto implementRevisedBudgetRatioComReqDto_1=new ImplementRevisedBudgetRatioComReqDto();
  implementRevisedBudgetRatioComReqDto_1.setRevisedBudgetRatioTypeCode("BUDGET_SET");//sourceId:1831282_1_69274
  implementRevisedBudgetRatioComReqDto_1.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1823734_1_69274
if(omsTargetCostset_3!=null){
      implementRevisedBudgetRatioComReqDto_1.setTargetCycleContentId(omsTargetCostset_3.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1823735_1_69274
implementRevisedBudgetRatioComReqDto_1.setEvaluationTemplateId(omsTargetCostset_3.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823737_1_69274
    }
if(queryFinaceDecimalPointDetailComRespDto!=null){
      implementRevisedBudgetRatioComReqDto_1.setDecimalPointRules(queryFinaceDecimalPointDetailComRespDto.getFinaceDecimalPoint());//SimpleFieldAssign//sourceId:1823738_1_69274
implementRevisedBudgetRatioComReqDto_1.setDecimalDigitsLastRules(queryFinaceDecimalPointDetailComRespDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1823739_1_69274
      }

    /*D7执行修正预算子周期占比(公共)[9672]   */
    Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getRevisedBudgetRatioTypeCode(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算子周期占比(公共)-修正预算占比类型不能为空",false);
    Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getBudgetCycleModeTypeCode(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算子周期占比(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getTargetCycleContentId(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算子周期占比(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getEvaluationTemplateId(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算子周期占比(公共)-评价模板ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算子周期占比(公共)-小数点规则不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算子周期占比(公共)-小数最后一位规则不能为空",false);
      implementRevisedBudgetRatioComRespDto_1 = implementRevisedBudgetRatioCom(implementRevisedBudgetRatioComReqDto_1)/*vcase invoke 同服务,同domain*/;



           }
      }
else if((reqDto!= null&& reqDto.getTargetTopCostSetId() != null )&&(reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("SINGLE_CYCLE")||reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("IRREGULAR_CYCLE"))){
       //elseif(D7计算并新增预算资金来源占比(公共).目标父周期预算设置ID 值不等于空  and (D7计算并新增预算资金来源占比(公共).周期模式类型编码 等于 单周期 or D7计算并新增预算资金来源占比(公共).周期模式类型编码 等于 不规则周期))  69403

OmsTargetCostset omsTargetCostset_7 = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq_3=new QueryTargetBudgetSetDetailReq();
  if(receptionServiceRes!=null){
      queryTargetBudgetSetDetailReq_3.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField3());//SimpleFieldAssign//sourceId:1830659_1_69404
    }
if(reqDto!=null){
      queryTargetBudgetSetDetailReq_3.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1518929_1_69404
    }

    /*7-1-07查询目标父周期预算设置详情[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq_3.getTargetCycleContentId(),"D7计算并新增预算资金来源占比(公共)-7-1-07查询目标父周期预算设置详情-关联目标内容ID不能为空",false);
      omsTargetCostset_7 = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq_3)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsTargetCostset_7== null||  omsTargetCostset_7.getCycleBudgetAmount() ==null,"找不到数据，系统异常",false);


boolean bOOLEAN_2 ;
    if(omsTargetCostset_7 !=null){
          OmsTargetCostset omsTargetCostset_8=new OmsTargetCostset();
  if(omsTargetCostset_7!=null){
      omsTargetCostset_8.setTargetCostSetId(omsTargetCostset_7.getTargetCostSetId());//SimpleFieldAssign//sourceId:1518532_1_69405
    }
if(receptionServiceRes!=null){
      omsTargetCostset_8.setBudgetRate(receptionServiceRes.getCustomField2()!=null?Double.valueOf(receptionServiceRes.getCustomField2()):null);//SimpleFieldAssign//sourceId:1518536_1_69405
    }

    /*7-1-07修改目标预算设置[8383]   */
    Assert.isNull(omsTargetCostset_8.getTargetCostSetId(),"D7计算并新增预算资金来源占比(公共)-7-1-07修改目标预算设置-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset_8.getBudgetRate(),"D7计算并新增预算资金来源占比(公共)-7-1-07修改目标预算设置-预算金额占比不能为空",false);
      bOOLEAN_2 = mOmsTargetCostsetService.updateTargetBudgetSet(omsTargetCostset_8)/*vcase invoke 本地 method 方法调用;*/;



           }
ImplementRevisedBudgetRatioComRespDto implementRevisedBudgetRatioComRespDto_2 = null;
    if(omsTargetCostset_7 !=null&&queryFinaceDecimalPointDetailComRespDto !=null){
          ImplementRevisedBudgetRatioComReqDto implementRevisedBudgetRatioComReqDto_2=new ImplementRevisedBudgetRatioComReqDto();
  implementRevisedBudgetRatioComReqDto_2.setRevisedBudgetRatioTypeCode("BUDGET_SET");//sourceId:1831281_1_69407
implementRevisedBudgetRatioComReqDto_2.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1823728_1_69407
if(omsTargetCostset_7!=null){
      implementRevisedBudgetRatioComReqDto_2.setEvaObjTargetCycleId(omsTargetCostset_7.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1823730_1_69407
    }
if(reqDto!=null){

implementRevisedBudgetRatioComReqDto_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823731_1_69407
    }
if(queryFinaceDecimalPointDetailComRespDto!=null){
      implementRevisedBudgetRatioComReqDto_2.setDecimalPointRules(queryFinaceDecimalPointDetailComRespDto.getFinaceDecimalPoint());//SimpleFieldAssign//sourceId:1823732_1_69407
implementRevisedBudgetRatioComReqDto_2.setDecimalDigitsLastRules(queryFinaceDecimalPointDetailComRespDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1823733_1_69407
    }

    /*D7执行修正预算来源占比(公共)[9672]   */
    Assert.isNull(implementRevisedBudgetRatioComReqDto_2.getRevisedBudgetRatioTypeCode(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-修正预算占比类型不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_2.getBudgetCycleModeTypeCode(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_2.getEvaObjTargetCycleId(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_2.getEvaluationTemplateId(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-评价模板ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_2.getDecimalPointRules(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-小数点规则不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_2.getDecimalDigitsLastRules(),"D7计算并新增预算资金来源占比(公共)-D7执行修正预算来源占比(公共)-小数最后一位规则不能为空",false);
      implementRevisedBudgetRatioComRespDto_2 = implementRevisedBudgetRatioCom(implementRevisedBudgetRatioComReqDto_2)/*vcase invoke 同服务,同domain*/;



           }
      }
CalculateAndCreateBudgetSourceProportionComRespDto retData = new CalculateAndCreateBudgetSourceProportionComRespDto();





return retData;
  }
/**
   * D7-执行目标财务预算相关处理(公共)[8409]
   * gen by moon at 5/28/2024, 7:26:44 PM
   */
  @Trace(operationName = "D7-执行目标财务预算相关处理(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementTargetFinBudgetHandleComRespDto implementTargetFinBudgetHandleCom(ImplementTargetFinBudgetHandleComReqDto reqDto){


      //步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!= null&&  reqDto.getTargetBudgetSetList() !=null&& !CollectionUtil.isEmpty(reqDto.getTargetBudgetSetList())){
      receptionServiceReq.setTargetBudgetSetList(reqDto.getTargetBudgetSetList().stream().map(item -> BeanUtil.toBean(item, TargetBudgetSetDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1519654_1
    }
if(reqDto!=null){
      receptionServiceReq.setSubCycleList(reqDto.getSubCycleList());//list-field-assign//sourceId:1519655_1
receptionServiceReq.setMidTermSubCycleList(reqDto.getMidTermSubCycleList());//list-field-assign//sourceId:1519656_1
receptionServiceReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1519660_1
receptionServiceReq.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1519665_1
receptionServiceReq.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1519681_1
receptionServiceReq.setParentEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1555061_1
receptionServiceReq.setFatherEvaObjTargetCycleId(reqDto.getFatherEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1519657_1
receptionServiceReq.setMidEvaObjTargetCycleId(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1519658_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1519659_1
receptionServiceReq.setPeriodicModeTypeCode(reqDto.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:1519664_1
receptionServiceReq.setAddOrSubOptType(reqDto.getAddOrSubOptType());//SimpleFieldAssign//sourceId:1519666_1
receptionServiceReq.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1519662_1
receptionServiceReq.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1519663_1
receptionServiceReq.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1519661_1
    }

    /*M7-执行接收字段入参（财务）[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getTargetCycleContentId(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-关联目标内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentTypeCode(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-关联目标内容类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getEvaObjTargetCycleCode(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-被评对象目标周期标识不能为空",false);
Assert.isNull(receptionServiceReq.getFatherEvaObjTargetCycleId(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-父周期被评对象目标周期ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-评价模板ID不能为空",false);
Assert.isNull(receptionServiceReq.getPeriodicModeTypeCode(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-周期模式类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getAddOrSubOptType(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-加减操作类型不能为空",false);
Assert.isNull(receptionServiceReq.getOppositeLogo(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-对方logo不能为空",false);
Assert.isNull(receptionServiceReq.getOppositeName(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-对方名称不能为空",false);
Assert.isNull(receptionServiceReq.getBillBizStory(),"D7-执行目标财务预算相关处理(公共)-M7-执行接收字段入参（财务）-流水业务故事信息不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);




//步骤1: D7执行目标资金来源预算设置(公共) - implementTargetFundingSourceBudgetSetCom
     ImplementTargetFundingSourceBudgetSetComRespDto implementTargetFundingSourceBudgetSetComRespDto = null;
    ImplementTargetFundingSourceBudgetSetComReqDto implementTargetFundingSourceBudgetSetComReqDto=new ImplementTargetFundingSourceBudgetSetComReqDto();
  if(reqDto!=null){
      implementTargetFundingSourceBudgetSetComReqDto.setAddOrSubOptType(reqDto.getAddOrSubOptType());//SimpleFieldAssign//sourceId:1519690_1
implementTargetFundingSourceBudgetSetComReqDto.setParentAccountContentCode(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1555063_1
implementTargetFundingSourceBudgetSetComReqDto.setAccountObjectId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1519684_1
implementTargetFundingSourceBudgetSetComReqDto.setAccountObjectTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1519685_1
implementTargetFundingSourceBudgetSetComReqDto.setAccountContentCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1519686_1
implementTargetFundingSourceBudgetSetComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1555056_1
implementTargetFundingSourceBudgetSetComReqDto.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1519687_1
implementTargetFundingSourceBudgetSetComReqDto.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1519688_1
implementTargetFundingSourceBudgetSetComReqDto.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1519689_1
    }
if(reqDto!= null&&  reqDto.getTargetBudgetSetList() !=null&& !CollectionUtil.isEmpty(reqDto.getTargetBudgetSetList())){
      implementTargetFundingSourceBudgetSetComReqDto.setTargetBudgetSetList(reqDto.getTargetBudgetSetList().stream().map(item -> BeanUtil.toBean(item, TargetBudgetSetDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1519683_1
    }

    /*D7执行目标资金来源预算设置(公共)[8379]   */
    Assert.isNull(implementTargetFundingSourceBudgetSetComReqDto.getAddOrSubOptType(),"D7-执行目标财务预算相关处理(公共)-D7执行目标资金来源预算设置(公共)-加减操作类型不能为空",false);
Assert.isNull(implementTargetFundingSourceBudgetSetComReqDto.getAccountObjectId(),"D7-执行目标财务预算相关处理(公共)-D7执行目标资金来源预算设置(公共)-关联归属主体ID不能为空",false);
Assert.isNull(implementTargetFundingSourceBudgetSetComReqDto.getAccountObjectTypeCode(),"D7-执行目标财务预算相关处理(公共)-D7执行目标资金来源预算设置(公共)-关联归属主体类型编码不能为空",false);
Assert.isNull(implementTargetFundingSourceBudgetSetComReqDto.getAccountContentCode(),"D7-执行目标财务预算相关处理(公共)-D7执行目标资金来源预算设置(公共)-关联归属主体标识不能为空",false);
Assert.isNull(implementTargetFundingSourceBudgetSetComReqDto.getThemeContentId(),"D7-执行目标财务预算相关处理(公共)-D7执行目标资金来源预算设置(公共)-主题内容ID不能为空",false);
Assert.isNull(implementTargetFundingSourceBudgetSetComReqDto.getOppositeLogo(),"D7-执行目标财务预算相关处理(公共)-D7执行目标资金来源预算设置(公共)-对方logo不能为空",false);
Assert.isNull(implementTargetFundingSourceBudgetSetComReqDto.getOppositeName(),"D7-执行目标财务预算相关处理(公共)-D7执行目标资金来源预算设置(公共)-对方名称不能为空",false);
Assert.isNull(implementTargetFundingSourceBudgetSetComReqDto.getBillBizStory(),"D7-执行目标财务预算相关处理(公共)-D7执行目标资金来源预算设置(公共)-流水业务故事信息不能为空",false);
      implementTargetFundingSourceBudgetSetComRespDto = implementTargetFundingSourceBudgetSetCom(implementTargetFundingSourceBudgetSetComReqDto)/*vcase invoke 同服务,同domain*/;




//步骤2: D7执行统计目标周期预算设置(公共) - implementStatisticalTargetCycleBudgetSetCom
     ImplementStatisticalTargetCycleBudgetSetComRespDto implementStatisticalTargetCycleBudgetSetComRespDto = null;
    ImplementStatisticalTargetCycleBudgetSetComReqDto implementStatisticalTargetCycleBudgetSetComReqDto=new ImplementStatisticalTargetCycleBudgetSetComReqDto();
  if(reqDto!=null){
      implementStatisticalTargetCycleBudgetSetComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1519695_1
implementStatisticalTargetCycleBudgetSetComReqDto.setPeriodicModeTypeCode(reqDto.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:1519699_1
implementStatisticalTargetCycleBudgetSetComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1519694_1
implementStatisticalTargetCycleBudgetSetComReqDto.setFatherEvaObjTargetCycleId(reqDto.getFatherEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1519692_1
implementStatisticalTargetCycleBudgetSetComReqDto.setMidEvaObjTargetCycleId(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1519693_1
implementStatisticalTargetCycleBudgetSetComReqDto.setSubCycleList(reqDto.getSubCycleList());//list-field-assign//sourceId:1519691_1
implementStatisticalTargetCycleBudgetSetComReqDto.setMidTermSubCycleList(reqDto.getMidTermSubCycleList());//list-field-assign//sourceId:1519696_1
    }

    /*D7执行统计目标周期预算设置(公共)[8386]   */
    Assert.isNull(implementStatisticalTargetCycleBudgetSetComReqDto.getEvaluationTemplateId(),"D7-执行目标财务预算相关处理(公共)-D7执行统计目标周期预算设置(公共)-评价模板ID不能为空",false);
Assert.isNull(implementStatisticalTargetCycleBudgetSetComReqDto.getPeriodicModeTypeCode(),"D7-执行目标财务预算相关处理(公共)-D7执行统计目标周期预算设置(公共)-周期模式类型编码不能为空",false);
Assert.isNull(implementStatisticalTargetCycleBudgetSetComReqDto.getTargetCycleContentId(),"D7-执行目标财务预算相关处理(公共)-D7执行统计目标周期预算设置(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementStatisticalTargetCycleBudgetSetComReqDto.getFatherEvaObjTargetCycleId(),"D7-执行目标财务预算相关处理(公共)-D7执行统计目标周期预算设置(公共)-父周期被评对象目标周期ID不能为空",false);
      implementStatisticalTargetCycleBudgetSetComRespDto = implementStatisticalTargetCycleBudgetSetCom(implementStatisticalTargetCycleBudgetSetComReqDto)/*vcase invoke 同服务,同domain*/;




//步骤3: D7计算并新增预算资金来源占比(公共) - calculateAndCreateBudgetSourceProportionCom
     CalculateAndCreateBudgetSourceProportionComRespDto calculateAndCreateBudgetSourceProportionComRespDto = null;
    if(implementStatisticalTargetCycleBudgetSetComRespDto !=null){
          CalculateAndCreateBudgetSourceProportionComReqDto calculateAndCreateBudgetSourceProportionComReqDto=new CalculateAndCreateBudgetSourceProportionComReqDto();
  if(reqDto!=null){
      calculateAndCreateBudgetSourceProportionComReqDto.setPeriodicModeTypeCode(reqDto.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:1519743_1
calculateAndCreateBudgetSourceProportionComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1519740_1
calculateAndCreateBudgetSourceProportionComReqDto.setSubCycleList(reqDto.getSubCycleList());//list-field-assign//sourceId:1519742_1
calculateAndCreateBudgetSourceProportionComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823777_1
    }
if(implementStatisticalTargetCycleBudgetSetComRespDto!=null){
      calculateAndCreateBudgetSourceProportionComReqDto.setTargetTopCostSetId(implementStatisticalTargetCycleBudgetSetComRespDto.getTargetTopCostSetId());//SimpleFieldAssign//sourceId:1519741_1
    }

    /*D7计算并新增预算资金来源占比(公共)[8406]   */
    Assert.isNull(calculateAndCreateBudgetSourceProportionComReqDto.getPeriodicModeTypeCode(),"D7-执行目标财务预算相关处理(公共)-D7计算并新增预算资金来源占比(公共)-周期模式类型编码不能为空",false);
Assert.isNull(calculateAndCreateBudgetSourceProportionComReqDto.getTargetCycleContentId(),"D7-执行目标财务预算相关处理(公共)-D7计算并新增预算资金来源占比(公共)-关联目标内容ID不能为空",false);
Assert.isNull(calculateAndCreateBudgetSourceProportionComReqDto.getEvaluationTemplateId(),"D7-执行目标财务预算相关处理(公共)-D7计算并新增预算资金来源占比(公共)-评价模板ID不能为空",false);
      calculateAndCreateBudgetSourceProportionComRespDto = calculateAndCreateBudgetSourceProportionCom(calculateAndCreateBudgetSourceProportionComReqDto)/*vcase invoke 同服务,同domain*/;



           }

ImplementTargetFinBudgetHandleComRespDto retData = new ImplementTargetFinBudgetHandleComRespDto();





return retData;
  }
/**
   * D7执行统计下级目标预算已设值(公共)[8422]
   * gen by moon at 5/20/2024, 1:33:28 PM
   */
  @Trace(operationName = "D7执行统计下级目标预算已设值(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementCountSetValuesSubordinateTargetBudgetsComRespDto implementCountSetValuesSubordinateTargetBudgetsCom(ImplementCountSetValuesSubordinateTargetBudgetsComReqDto reqDto){


      List<OmsTargetCostset> listOmsTargetCostset_1 =new ArrayList<>();
      CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_1 =null;
if((reqDto!= null&&  reqDto.getTargetBudgetSetList() !=null && reqDto.getTargetBudgetSetList().size()>0)) {
        //if(D7执行统计下级目标预算已设值(公共).目标预算设置列表数据集条数 大于 0)  61705

     List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    BatchQueryTargetBudgetSetReq batchQueryTargetBudgetSetReq=new BatchQueryTargetBudgetSetReq();
  if(reqDto!=null){
      batchQueryTargetBudgetSetReq.setTargetBudgetSetList(reqDto.getTargetBudgetSetList());//list-field-assign//sourceId:1521033_1_61706
batchQueryTargetBudgetSetReq.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1521037_1_61706
batchQueryTargetBudgetSetReq.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1522594_1_61706
batchQueryTargetBudgetSetReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1521035_1_61706
    }

    /*7-1-07批量查询目标预算设置（By目标周期）[8398]   */
    Assert.isNull(batchQueryTargetBudgetSetReq.getBudgetCycleModeTypeCode(),"D7执行统计下级目标预算已设值(公共)-7-1-07批量查询目标预算设置（By目标周期）-预算周期模型编码不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq.getEvaluationTemplateId(),"D7执行统计下级目标预算已设值(公共)-7-1-07批量查询目标预算设置（By目标周期）-冗余评价模板ID不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.batchQueryTargetBudgetSet(batchQueryTargetBudgetSetReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsTargetCostset_1 = listOmsTargetCostset;
if((listOmsTargetCostset!= null&&  listOmsTargetCostset !=null && listOmsTargetCostset.size()>0)) {
        //if(7-1-07批量查询目标预算设置.目标预算设置列表数据集条数 大于 0)  61707

     CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto = null;
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      calculateSumOfMultipleNumServiceComReqDto.setSumOfMultipleNumList(//objList-to-objLists
        listOmsTargetCostset.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getTargetCostSetId());//SimpleFieldAssign//sourceId:297994_2_61708
elm.setCalcPara1(item.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:297995_2_61708
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1521038_1_61708
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      calculateSumOfMultipleNumServiceComRespDto_1 = calculateSumOfMultipleNumServiceComRespDto;
           }
      }
      }
ImplementCountSetValuesSubordinateTargetBudgetsComRespDto retData = new ImplementCountSetValuesSubordinateTargetBudgetsComRespDto();
  retData.setTargetBudgetSetList(listOmsTargetCostset_1.stream().map(item -> BeanUtil.toBean(item, TargetBudgetSetDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1559840_1
  if(calculateSumOfMultipleNumServiceComRespDto_1!=null){
      retData.setCalcResult(calculateSumOfMultipleNumServiceComRespDto_1.getCalcResult());//SimpleFieldAssign//sourceId:1521048_1
    }




return retData;
  }
/**
   * D7执行统计下级总预算值并记录redis(公共)[8426]
   * gen by moon at 5/31/2024, 9:02:22 PM
   */
  @Trace(operationName = "D7执行统计下级总预算值并记录redis(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto implementCalculateTotalBudgetValueSubordinatesRecordCom(ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto reqDto){


      ImplementReceiveFieldInputRespDto receptionServiceRes_1 =null;
      if((reqDto!= null&&  reqDto.getIsLastStaticAccount() !=null && reqDto.getIsLastStaticAccount().equals("TRUE"))) {
        //if(D7执行统计下级总预算值并记录redis(公共).是否末级统计账户 等于 是)  60614

ImplementCountSetValuesSubordinateTargetBudgetsComRespDto implementCountSetValuesSubordinateTargetBudgetsComRespDto = null;
    ImplementCountSetValuesSubordinateTargetBudgetsComReqDto implementCountSetValuesSubordinateTargetBudgetsComReqDto=new ImplementCountSetValuesSubordinateTargetBudgetsComReqDto();
  if(reqDto!=null){
      implementCountSetValuesSubordinateTargetBudgetsComReqDto.setTargetBudgetSetList(reqDto.getTargetBudgetSetList());//list-field-assign//sourceId:1521263_1_60615
implementCountSetValuesSubordinateTargetBudgetsComReqDto.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1521264_1_60615
implementCountSetValuesSubordinateTargetBudgetsComReqDto.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1522616_1_60615
implementCountSetValuesSubordinateTargetBudgetsComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1521265_1_60615
    }

    /*D7执行统计下级目标预算已设值(公共)[8422]   */
    Assert.isNull(implementCountSetValuesSubordinateTargetBudgetsComReqDto.getBudgetCycleModeTypeCode(),"D7执行统计下级总预算值并记录redis(公共)-D7执行统计下级目标预算已设值(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCountSetValuesSubordinateTargetBudgetsComReqDto.getEvaluationTemplateId(),"D7执行统计下级总预算值并记录redis(公共)-D7执行统计下级目标预算已设值(公共)-冗余评价模板ID不能为空",false);
      implementCountSetValuesSubordinateTargetBudgetsComRespDto = implementCountSetValuesSubordinateTargetBudgetsCom(implementCountSetValuesSubordinateTargetBudgetsComReqDto)/*vcase invoke 同服务,同domain*/;



//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    if(implementCountSetValuesSubordinateTargetBudgetsComRespDto !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(implementCountSetValuesSubordinateTargetBudgetsComRespDto!=null){
      receptionServiceReq.setCycleBudgetAmount(implementCountSetValuesSubordinateTargetBudgetsComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1525872_1_60702
    }
if(implementCountSetValuesSubordinateTargetBudgetsComRespDto!= null&&  implementCountSetValuesSubordinateTargetBudgetsComRespDto.getTargetBudgetSetList() !=null&& !CollectionUtil.isEmpty(implementCountSetValuesSubordinateTargetBudgetsComRespDto.getTargetBudgetSetList())){
      receptionServiceReq.setTargetBudgetSetList(implementCountSetValuesSubordinateTargetBudgetsComRespDto.getTargetBudgetSetList().stream().map(item -> BeanUtil.toBean(item, TargetBudgetSetDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1559844_1_60702
    }

    /*M7-接收计算后目标预算值[7656]  用于特殊方法接收上游入参。 */

      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }
      }
else if((reqDto!= null&&  reqDto.getIsLastStaticAccount() !=null && reqDto.getIsLastStaticAccount().equals("FALSE"))){
       //elseif(D7执行统计下级总预算值并记录redis(公共).是否末级统计账户 等于 否)  60616

ImplementCountTempBudgetValuesSubordinateTargetsComRespDto implementCountTempBudgetValuesSubordinateTargetsComRespDto = null;
    ImplementCountTempBudgetValuesSubordinateTargetsComReqDto implementCountTempBudgetValuesSubordinateTargetsComReqDto=new ImplementCountTempBudgetValuesSubordinateTargetsComReqDto();
  if(reqDto!=null){
      implementCountTempBudgetValuesSubordinateTargetsComReqDto.setTargetBudgetSetList(reqDto.getTargetBudgetSetList());//list-field-assign//sourceId:1526373_1_60704
implementCountTempBudgetValuesSubordinateTargetsComReqDto.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1526370_1_60704
implementCountTempBudgetValuesSubordinateTargetsComReqDto.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1526371_1_60704
implementCountTempBudgetValuesSubordinateTargetsComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527932_1_60704
    }

    /*D7执行统计下级目标预算redis临时值(公共)[8423]   */
    Assert.isNull(implementCountTempBudgetValuesSubordinateTargetsComReqDto.getBudgetCycleModeTypeCode(),"D7执行统计下级总预算值并记录redis(公共)-D7执行统计下级目标预算redis临时值(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCountTempBudgetValuesSubordinateTargetsComReqDto.getDataObjectBatchCode(),"D7执行统计下级总预算值并记录redis(公共)-D7执行统计下级目标预算redis临时值(公共)-数据对象批次标识不能为空",false);
      implementCountTempBudgetValuesSubordinateTargetsComRespDto = implementCountTempBudgetValuesSubordinateTargetsCom(implementCountTempBudgetValuesSubordinateTargetsComReqDto)/*vcase invoke 同服务,同domain*/;



//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_2 = null;
    if(implementCountTempBudgetValuesSubordinateTargetsComRespDto !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq_1=new ImplementReceiveFieldInputReqDto();
  if(implementCountTempBudgetValuesSubordinateTargetsComRespDto!=null){
      receptionServiceReq_1.setCycleBudgetAmount(implementCountTempBudgetValuesSubordinateTargetsComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1525872_1_60703
//simpleList-to-objLists
    for (String item : implementCountTempBudgetValuesSubordinateTargetsComRespDto.getTargetBudgetSetList()) {
                TargetBudgetSetDto oneItem = new TargetBudgetSetDto();
                if(implementCountTempBudgetValuesSubordinateTargetsComRespDto!=null){
      oneItem.setCapitalSourceId(item);//SimpleFieldAssign//sourceId:305729_2_60703
    }

                receptionServiceReq_1.getTargetBudgetSetList().add(oneItem);
            }//sourceId:1559844_1_60703
    }

    /*M7-接收计算后目标预算值[7656]  用于特殊方法接收上游入参。 */

      receptionServiceRes_2 = nbFinance.implementReceiveFieldInput(receptionServiceReq_1);


      receptionServiceRes_1 = receptionServiceRes_2;
           }
    }
else if((reqDto!= null&&  reqDto.getIsLastStaticAccount() !=null && reqDto.getIsLastStaticAccount().equals("MIX"))){
       //elseif(D7执行统计下级总预算值并记录redis(公共).是否末级统计账户 等于 混合)  68642

ImplementCountSetValuesSubordinateTargetBudgetsComRespDto implementCountSetValuesSubordinateTargetBudgetsComRespDto_2 = null;
    ImplementCountSetValuesSubordinateTargetBudgetsComReqDto implementCountSetValuesSubordinateTargetBudgetsComReqDto_1=new ImplementCountSetValuesSubordinateTargetBudgetsComReqDto();
  if(reqDto!=null){
      implementCountSetValuesSubordinateTargetBudgetsComReqDto_1.setTargetBudgetSetList(reqDto.getTargetBudgetSetList());//list-field-assign//sourceId:1521263_1_68643
implementCountSetValuesSubordinateTargetBudgetsComReqDto_1.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1521264_1_68643
implementCountSetValuesSubordinateTargetBudgetsComReqDto_1.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1522616_1_68643
implementCountSetValuesSubordinateTargetBudgetsComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1521265_1_68643
    }

    /*D7执行统计下级目标预算已设值(公共)[8422]   */
    Assert.isNull(implementCountSetValuesSubordinateTargetBudgetsComReqDto_1.getBudgetCycleModeTypeCode(),"D7执行统计下级总预算值并记录redis(公共)-D7执行统计下级目标预算已设值(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCountSetValuesSubordinateTargetBudgetsComReqDto_1.getEvaluationTemplateId(),"D7执行统计下级总预算值并记录redis(公共)-D7执行统计下级目标预算已设值(公共)-冗余评价模板ID不能为空",false);
      implementCountSetValuesSubordinateTargetBudgetsComRespDto_2 = implementCountSetValuesSubordinateTargetBudgetsCom(implementCountSetValuesSubordinateTargetBudgetsComReqDto_1)/*vcase invoke 同服务,同domain*/;



ImplementCountTempBudgetValuesSubordinateTargetsComRespDto implementCountTempBudgetValuesSubordinateTargetsComRespDto_2 = null;
    ImplementCountTempBudgetValuesSubordinateTargetsComReqDto implementCountTempBudgetValuesSubordinateTargetsComReqDto_1=new ImplementCountTempBudgetValuesSubordinateTargetsComReqDto();
  if(reqDto!=null){
      implementCountTempBudgetValuesSubordinateTargetsComReqDto_1.setTargetBudgetSetList(reqDto.getTargetBudgetSetList());//list-field-assign//sourceId:1526373_1_68644
implementCountTempBudgetValuesSubordinateTargetsComReqDto_1.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1526370_1_68644
implementCountTempBudgetValuesSubordinateTargetsComReqDto_1.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1526371_1_68644
implementCountTempBudgetValuesSubordinateTargetsComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527932_1_68644
    }

    /*D7执行统计下级目标预算redis临时值(公共)[8423]   */
    Assert.isNull(implementCountTempBudgetValuesSubordinateTargetsComReqDto_1.getBudgetCycleModeTypeCode(),"D7执行统计下级总预算值并记录redis(公共)-D7执行统计下级目标预算redis临时值(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCountTempBudgetValuesSubordinateTargetsComReqDto_1.getDataObjectBatchCode(),"D7执行统计下级总预算值并记录redis(公共)-D7执行统计下级目标预算redis临时值(公共)-数据对象批次标识不能为空",false);
      implementCountTempBudgetValuesSubordinateTargetsComRespDto_2 = implementCountTempBudgetValuesSubordinateTargetsCom(implementCountTempBudgetValuesSubordinateTargetsComReqDto_1)/*vcase invoke 同服务,同domain*/;



if((implementCountSetValuesSubordinateTargetBudgetsComRespDto_2!= null&& implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getCalcResult() != null &&implementCountTempBudgetValuesSubordinateTargetsComRespDto_2!= null&& implementCountTempBudgetValuesSubordinateTargetsComRespDto_2.getCalcResult() != null )) {
        //if((D7执行统计下级目标预算已设值(公共).计算结果 值不等于空  and D7执行统计下级目标预算redis临时值(公共).计算结果 值不等于空 ))  68672

CalculateAdditionOfTwoNumServiceComRespDto calculateAdditionOfTwoNumServiceComRespDto = null;
    if(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2 !=null&&implementCountTempBudgetValuesSubordinateTargetsComRespDto_2 !=null){
          CalculateAdditionOfTwoNumServiceComReqDto calculateAdditionOfTwoNumServiceComReqDto=new CalculateAdditionOfTwoNumServiceComReqDto();
  calculateAdditionOfTwoNumServiceComReqDto.setDecimalPointRules(Long.valueOf(10));//CUSTOM_CONVENTION//sourceId:1809695_1_68675
calculateAdditionOfTwoNumServiceComReqDto.setDecimalDigitsLastRules("MALING");//sourceId:1809696_1_68675
if(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2!=null){
      calculateAdditionOfTwoNumServiceComReqDto.setCalcPara1(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1809692_1_68675
    }
if(implementCountTempBudgetValuesSubordinateTargetsComRespDto_2!=null){
      calculateAdditionOfTwoNumServiceComReqDto.setCalcPara2(implementCountTempBudgetValuesSubordinateTargetsComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1809693_1_68675
    }

    /*D4-计算两个数相加服务(公共)[3372]   */
    Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto.getCalcPara1(),"D7执行统计下级总预算值并记录redis(公共)-D4-计算两个数相加服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto.getCalcPara2(),"D7执行统计下级总预算值并记录redis(公共)-D4-计算两个数相加服务(公共)-计算入参2不能为空",false);
    Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto.getDecimalPointRules(),"D7执行统计下级总预算值并记录redis(公共)-D4-计算两个数相加服务(公共)-小数点规则不能为空",false);
Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto.getDecimalDigitsLastRules(),"D7执行统计下级总预算值并记录redis(公共)-D4-计算两个数相加服务(公共)-小数最后一位规则不能为空",false);
      calculateAdditionOfTwoNumServiceComRespDto = fwCalcCalculationRulesClient.calculateAdditionOfTwoNumServiceCom(calculateAdditionOfTwoNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementUnionMultipleManyFieldsDataSetsComRespDto implementUnionMultipleManyFieldsDataSetsComRespDto = null;
    if(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2 !=null&&implementCountTempBudgetValuesSubordinateTargetsComRespDto_2 !=null){
          ImplementUnionMultipleManyFieldsDataSetsComReqDto implementUnionMultipleManyFieldsDataSetsComReqDto=new ImplementUnionMultipleManyFieldsDataSetsComReqDto();
  if(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2!= null&&  implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getTargetBudgetSetList() !=null&& !CollectionUtil.isEmpty(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getTargetBudgetSetList())){
      implementUnionMultipleManyFieldsDataSetsComReqDto.setDataSetsListOne(//objList-to-objLists
        implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getTargetBudgetSetList().stream().map(item -> {
      DataSetsListOneDto elm = new DataSetsListOneDto();
      if(item!=null){
      elm.setCustomField(item.getCapitalSourceId());//SimpleFieldAssign//sourceId:366705_2_69293
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1824375_1_69293
    }
if(implementCountTempBudgetValuesSubordinateTargetsComRespDto_2!=null){
      //simpleList-to-objLists
    for (String item : implementCountTempBudgetValuesSubordinateTargetsComRespDto_2.getTargetBudgetSetList()) {
                DataSetsListTwoDto oneItem = new DataSetsListTwoDto();
                if(implementCountTempBudgetValuesSubordinateTargetsComRespDto_2!=null){
      oneItem.setCustomField(item);//SimpleFieldAssign//sourceId:366708_2_69293
    }

                implementUnionMultipleManyFieldsDataSetsComReqDto.getDataSetsListTwo().add(oneItem);
            }//sourceId:1824376_1_69293
    }

    /*D2执行多数据集多字段取并集(公共)[5649]   */

      implementUnionMultipleManyFieldsDataSetsComRespDto = fwCompInterfaceModeClient.implementUnionMultipleManyFieldsDataSetsCom(implementUnionMultipleManyFieldsDataSetsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_3 = null;
    if(calculateAdditionOfTwoNumServiceComRespDto !=null&&implementUnionMultipleManyFieldsDataSetsComRespDto !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq_2=new ImplementReceiveFieldInputReqDto();
  if(calculateAdditionOfTwoNumServiceComRespDto!=null){
      receptionServiceReq_2.setCycleBudgetAmount(calculateAdditionOfTwoNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1525872_1_68676
    }
if(implementUnionMultipleManyFieldsDataSetsComRespDto!= null&&  implementUnionMultipleManyFieldsDataSetsComRespDto.getUnionMultipleDataSetsList() !=null&& !CollectionUtil.isEmpty(implementUnionMultipleManyFieldsDataSetsComRespDto.getUnionMultipleDataSetsList())){
      receptionServiceReq_2.setTargetBudgetSetList(//objList-to-objLists
        implementUnionMultipleManyFieldsDataSetsComRespDto.getUnionMultipleDataSetsList().stream().map(item -> {
      TargetBudgetSetDto elm = new TargetBudgetSetDto();
      if(item!=null){
      elm.setCapitalSourceId(item.getCustomField());//SimpleFieldAssign//sourceId:305729_2_68676
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1559844_1_68676
    }

    /*M7-接收计算后目标预算值[7656]  用于特殊方法接收上游入参。 */

      receptionServiceRes_3 = nbFinance.implementReceiveFieldInput(receptionServiceReq_2);


      receptionServiceRes_1 = receptionServiceRes_3;
           }
    }
else if((implementCountSetValuesSubordinateTargetBudgetsComRespDto_2!= null&& implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getCalcResult() != null &&implementCountTempBudgetValuesSubordinateTargetsComRespDto_2!= null&& implementCountTempBudgetValuesSubordinateTargetsComRespDto_2.getCalcResult() == null )){
       //elseif((D7执行统计下级目标预算已设值(公共).计算结果 值不等于空  and D7执行统计下级目标预算redis临时值(公共).计算结果 值等于空 ))  68673

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_4 = null;
    if(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2 !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq_3=new ImplementReceiveFieldInputReqDto();
  if(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2!=null){
      receptionServiceReq_3.setCycleBudgetAmount(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1525872_1_68677
    }
if(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2!= null&&  implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getTargetBudgetSetList() !=null&& !CollectionUtil.isEmpty(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getTargetBudgetSetList())){
      receptionServiceReq_3.setTargetBudgetSetList(implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getTargetBudgetSetList().stream().map(item -> BeanUtil.toBean(item, TargetBudgetSetDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1559844_1_68677
    }

    /*M7-接收计算后目标预算值[7656]  用于特殊方法接收上游入参。 */

      receptionServiceRes_4 = nbFinance.implementReceiveFieldInput(receptionServiceReq_3);


      receptionServiceRes_1 = receptionServiceRes_4;
           }
    }
else if((implementCountSetValuesSubordinateTargetBudgetsComRespDto_2!= null&& implementCountSetValuesSubordinateTargetBudgetsComRespDto_2.getCalcResult() == null &&implementCountTempBudgetValuesSubordinateTargetsComRespDto_2!= null&& implementCountTempBudgetValuesSubordinateTargetsComRespDto_2.getCalcResult() != null )){
       //elseif((D7执行统计下级目标预算已设值(公共).计算结果 值等于空  and D7执行统计下级目标预算redis临时值(公共).计算结果 值不等于空 ))  68674

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_5 = null;
    if(implementCountTempBudgetValuesSubordinateTargetsComRespDto_2 !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq_4=new ImplementReceiveFieldInputReqDto();
  if(implementCountTempBudgetValuesSubordinateTargetsComRespDto_2!=null){
      receptionServiceReq_4.setCycleBudgetAmount(implementCountTempBudgetValuesSubordinateTargetsComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1525872_1_68678
//simpleList-to-objLists
    for (String item : implementCountTempBudgetValuesSubordinateTargetsComRespDto_2.getTargetBudgetSetList()) {
                TargetBudgetSetDto oneItem = new TargetBudgetSetDto();
                if(implementCountTempBudgetValuesSubordinateTargetsComRespDto_2!=null){
      oneItem.setCapitalSourceId(item);//SimpleFieldAssign//sourceId:305729_2_68678
    }

                receptionServiceReq_4.getTargetBudgetSetList().add(oneItem);
            }//sourceId:1559844_1_68678
    }

    /*M7-接收计算后目标预算值[7656]  用于特殊方法接收上游入参。 */

      receptionServiceRes_5 = nbFinance.implementReceiveFieldInput(receptionServiceReq_4);


      receptionServiceRes_1 = receptionServiceRes_5;
           }
    }
    }
else{
       //else  60617

//异常结束 60618
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto retData = new ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setCycleBudgetAmount(receptionServiceRes_1.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1527007_1
    }
if(receptionServiceRes_1!= null&&  receptionServiceRes_1.getTargetBudgetSetList() !=null&& !CollectionUtil.isEmpty(receptionServiceRes_1.getTargetBudgetSetList())){
      retData.setTargetBudgetSetList(receptionServiceRes_1.getTargetBudgetSetList().stream().map(item->item.getCapitalSourceId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1559846_1
    }




return retData;
  }

/**
   * D7执行单内容统计资金来源及账户(公共)[8415]
   * gen by moon at 2/4/2024, 11:33:11 PM
   */
  @Trace(operationName = "D7执行单内容统计资金来源及账户(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementSingleContentCountFundingSourcesAccountsComRespDto implementSingleContentCountFundingSourcesAccountsCom(ImplementSingleContentCountFundingSourcesAccountsComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getIsExecuteFinaceHandle() !=null && reqDto.getIsExecuteFinaceHandle().equals("TRUE")&&reqDto!= null&&  reqDto.getIsBudgetAccount() !=null && reqDto.getIsBudgetAccount().equals("TRUE")&&reqDto!= null&&  reqDto.getIsStatisticalAccount() !=null && reqDto.getIsStatisticalAccount().equals("TRUE"))) {
        //if((D7执行单内容统计资金来源金额(公共).是否执行财务处理 等于 是 and D7执行单内容统计资金来源金额(公共).是否预算账户 等于 是 and D7执行单内容统计资金来源金额(公共).是否统计账户 等于 是))  60581

if((reqDto!= null&& reqDto.getFatherEvaObjTargetCycleId() != null &&reqDto!= null&&  reqDto.getParentCycleList() !=null && reqDto.getParentCycleList().size()>0&&reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("FATHER_SON_CYCLE"))) {
        //if((D7执行单内容统计资金来源金额(公共).父周期被评对象目标周期ID 值不等于空  and D7执行单内容统计资金来源金额(公共).父周期列表数据集条数 大于 0 and D7执行单内容统计资金来源金额(公共).周期模式类型编码 等于 父子周期))  60621

ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto implementCalculateTotalBudgetValueSubordinatesRecordComRespDto = null;
    ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto implementCalculateTotalBudgetValueSubordinatesRecordComReqDto=new ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto();
  implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setBudgetCycleModeTypeCode("PARENT_CYCLE");//sourceId:1527961_1_60627
if(reqDto!=null){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1521347_1_60627
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527962_1_60627
//implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527963_1_60627
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527964_1_60627
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setTargetBudgetSetList(reqDto.getParentCycleList());//list-field-assign//sourceId:1521348_1_60627
    }

    /*D7执行统计下级父周期总预算值并记录redis(公共)[8426]   */
    Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getIsLastStaticAccount(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级父周期总预算值并记录redis(公共)-是否末级统计账户不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getBudgetCycleModeTypeCode(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级父周期总预算值并记录redis(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getEvaluationTemplateId(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级父周期总预算值并记录redis(公共)-评价模板ID不能为空",false);
//Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getTargetCycleContentId(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级父周期总预算值并记录redis(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getDataObjectBatchCode(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级父周期总预算值并记录redis(公共)-数据对象批次标识不能为空",false);
      implementCalculateTotalBudgetValueSubordinatesRecordComRespDto = implementCalculateTotalBudgetValueSubordinatesRecordCom(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto)/*vcase invoke 同服务,同domain*/;



AddTargetBudgetSetPersonalPreComRespDto addTargetBudgetSetPersonalPreComRespDto = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto !=null){
          AddTargetBudgetSetPersonalPreComReqDto addTargetBudgetSetPersonalPreComReqDto=new AddTargetBudgetSetPersonalPreComReqDto();
  addTargetBudgetSetPersonalPreComReqDto.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1528279_1_60755
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue3("PARENT_CYCLE");//CUSTOM_CONVENTION//sourceId:1528283_1_60755
if(reqDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528280_1_60755
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue4(reqDto.getFatherEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528300_1_60755
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue6(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528286_1_60755
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue7(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528287_1_60755
    }
if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue1(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount()!=null?String.valueOf(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount()):"");//SimpleFieldAssign//sourceId:1528281_1_60755
    }

    /*D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）[8435]   */
    Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getBusinessDataObject(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-业务数据对象不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getDataObjectBatchCode(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-数据对象批次标识不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue1(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-周期预算金额不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue3(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-自定义字段值3不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue4(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-被评对象目标周期ID不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue6(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-关联目标内容类型编码不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue7(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-关联目标内容ID不能为空",false);
      addTargetBudgetSetPersonalPreComRespDto = fwCompFinanceClient.addTargetBudgetSetPersonalPreCom(addTargetBudgetSetPersonalPreComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
      }
else if((reqDto!= null&& reqDto.getMidEvaObjTargetCycleId() != null &&reqDto!= null&&  reqDto.getMidTermList() !=null && reqDto.getMidTermList().size()>0&&reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("FATHER_SON_CYCLE"))){
       //elseif((D7执行单内容统计资金来源金额(公共).中期被评对象目标周期ID 值不等于空  and D7执行单内容统计资金来源金额(公共).中期列表数据集条数 大于 0 and D7执行单内容统计资金来源金额(公共).周期模式类型编码 等于 父子周期))  60622

ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 = null;
    ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1=new ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto();
  implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setBudgetCycleModeTypeCode("METAPHASE");//sourceId:1527968_1_60628
if(reqDto!=null){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setIsLastStaticAccount(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1521354_1_60628
//implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527970_1_60628
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527971_1_60628
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527969_1_60628
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setTargetBudgetSetList(reqDto.getMidTermList());//list-field-assign//sourceId:1521355_1_60628
    }

    /*D7执行统计下级中期总预算值并记录redis(公共)[8426]   */
    Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getIsLastStaticAccount(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级中期总预算值并记录redis(公共)-是否末级统计账户不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getBudgetCycleModeTypeCode(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级中期总预算值并记录redis(公共)-预算周期模型编码不能为空",false);
//Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getTargetCycleContentId(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级中期总预算值并记录redis(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getDataObjectBatchCode(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级中期总预算值并记录redis(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getEvaluationTemplateId(),"D7执行单内容统计资金来源及账户(公共)-D7执行统计下级中期总预算值并记录redis(公共)-评价模板ID不能为空",false);
      implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 = implementCalculateTotalBudgetValueSubordinatesRecordCom(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1)/*vcase invoke 同服务,同domain*/;



AddTargetBudgetSetPersonalPreComRespDto addTargetBudgetSetPersonalPreComRespDto_1 = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 !=null){
          AddTargetBudgetSetPersonalPreComReqDto addTargetBudgetSetPersonalPreComReqDto_1=new AddTargetBudgetSetPersonalPreComReqDto();
  addTargetBudgetSetPersonalPreComReqDto_1.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1528289_1_60757
addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue3("METAPHASE");//CUSTOM_CONVENTION//sourceId:1528293_1_60757
if(reqDto!=null){
      addTargetBudgetSetPersonalPreComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528290_1_60757
addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue4(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528294_1_60757
addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue6(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528296_1_60757
addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue7(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528297_1_60757
    }
if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2!=null){
      addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue1(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount()!=null?String.valueOf(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount()):"");//SimpleFieldAssign//sourceId:1528291_1_60757
    }

    /*D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）[8435]   */
    Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getBusinessDataObject(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-业务数据对象不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getDataObjectBatchCode(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-数据对象批次标识不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue1(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-周期预算金额不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue3(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-自定义字段值3不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue4(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-被评对象目标周期ID不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue6(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-关联目标内容类型编码不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue7(),"D7执行单内容统计资金来源及账户(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-关联目标内容ID不能为空",false);
      addTargetBudgetSetPersonalPreComRespDto_1 = fwCompFinanceClient.addTargetBudgetSetPersonalPreCom(addTargetBudgetSetPersonalPreComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
    }
else if((reqDto!= null&&  reqDto.getSuperiorEvaObjTargetCycleList() !=null && reqDto.getSuperiorEvaObjTargetCycleList().size()>0&&reqDto!= null&&  reqDto.getSubCycleList() !=null && reqDto.getSubCycleList().size()>0)){
       //elseif((D7执行单内容统计资金来源金额(公共).上级目标内容被评对象目标周期列表数据集条数 大于 0 and D7执行单内容统计资金来源金额(公共).子周期列表数据集条数 大于 0))  60623

ImplementRecurrentCountFilterSubCyclesComRespDto implementRecurrentCountFilterSubCyclesComRespDto = null;
    ImplementRecurrentCountFilterSubCyclesComReqDto implementRecurrentCountFilterSubCyclesComReqDto=new ImplementRecurrentCountFilterSubCyclesComReqDto();
  implementRecurrentCountFilterSubCyclesComReqDto.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1528062_1_60629
  if(reqDto!=null){
      implementRecurrentCountFilterSubCyclesComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1521412_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1521413_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setFatherEvaObjTargetCycleId(reqDto.getFatherEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1527214_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527959_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527960_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528063_1_60629
    }
if(reqDto!= null&&  reqDto.getSuperiorEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getSuperiorEvaObjTargetCycleList())){
      implementRecurrentCountFilterSubCyclesComReqDto.setSuperiorEvaObjTargetCycleList(reqDto.getSuperiorEvaObjTargetCycleList().stream().map(item -> BeanUtil.toBean(item, SuperiorEvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1521410_1_60629
    }
if(reqDto!= null&&  reqDto.getSubCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getSubCycleList())){
      implementRecurrentCountFilterSubCyclesComReqDto.setSubCycleList(reqDto.getSubCycleList().stream().map(item -> BeanUtil.toBean(item, SubCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1521411_1_60629
    }

    /*D7执行循环统计过滤下级子周期(公共)[8427]   */
    Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getEvaluationTemplateId(),"D7执行单内容统计资金来源及账户(公共)-D7执行循环统计过滤下级子周期(公共)-评价模板ID不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getIsLastStaticAccount(),"D7执行单内容统计资金来源及账户(公共)-D7执行循环统计过滤下级子周期(公共)-是否末级统计账户不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getFatherEvaObjTargetCycleId(),"D7执行单内容统计资金来源及账户(公共)-D7执行循环统计过滤下级子周期(公共)-父周期被评对象目标周期ID不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getDataObjectBatchCode(),"D7执行单内容统计资金来源及账户(公共)-D7执行循环统计过滤下级子周期(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getBudgetCycleModeTypeCode(),"D7执行单内容统计资金来源及账户(公共)-D7执行循环统计过滤下级子周期(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getTargetCycleContentId(),"D7执行单内容统计资金来源及账户(公共)-D7执行循环统计过滤下级子周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getTargetCycleContentTypeCode(),"D7执行单内容统计资金来源及账户(公共)-D7执行循环统计过滤下级子周期(公共)-关联目标内容类型编码不能为空",false);
      implementRecurrentCountFilterSubCyclesComRespDto = implementRecurrentCountFilterSubCyclesCom(implementRecurrentCountFilterSubCyclesComReqDto)/*vcase invoke 同服务,同domain*/;



    }
else{
       //else  60625

//异常结束 60626
      throw new BizException("CC10000284","对不起，当前目标内容参数有问题，请联系管理员～。",false);
    }
      }
ImplementSingleContentCountFundingSourcesAccountsComRespDto retData = new ImplementSingleContentCountFundingSourcesAccountsComRespDto();





return retData;
  }
/**
   * D7执行循环统计过滤下级子周期(公共)[8427]
   * gen by moon at 5/31/2024, 9:02:31 PM
   */
  @Trace(operationName = "D7执行循环统计过滤下级子周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementRecurrentCountFilterSubCyclesComRespDto implementRecurrentCountFilterSubCyclesCom(ImplementRecurrentCountFilterSubCyclesComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getSuperiorEvaObjTargetCycleList() !=null && reqDto.getSuperiorEvaObjTargetCycleList().size()>0&&reqDto!= null&&  reqDto.getSubCycleList() !=null && reqDto.getSubCycleList().size()>0)) {
        //if((D7执行循环统计过滤下级子周期(公共).上级目标内容被评对象目标周期列表数据集条数 大于 0 and D7执行循环统计过滤下级子周期(公共).子周期列表数据集条数 大于 0))  60610

QueryFinaceDecimalPointDetailComRespDto queryFinaceDecimalPointDetailComRespDto = null;
    QueryFinaceDecimalPointDetailComReqDto queryFinaceDecimalPointDetailComReqDto=new QueryFinaceDecimalPointDetailComReqDto();
  if(reqDto!=null){
      queryFinaceDecimalPointDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823973_1_69280
    }

    /*D2查询财务小数规则详情(公共)[9673]   */
    Assert.isNull(queryFinaceDecimalPointDetailComReqDto.getResultAspObjId(),"D7执行循环统计过滤下级子周期(公共)-D2查询财务小数规则详情(公共)-开通对象ID不能为空",false);
      queryFinaceDecimalPointDetailComRespDto = fwCompConfSchemeClient.queryFinaceDecimalPointDetailCom(queryFinaceDecimalPointDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//ModelCode: circulationCollections
        for (SuperiorEvaObjTargetCycleDto circulationCollectionsRes: reqDto.getSuperiorEvaObjTargetCycleList()){

ImplementDataFilterSpecRecByTypeCodeComRespDto implementDataFilterSpecRecByTypeCodeComRespDto = null;
    ImplementDataFilterSpecRecByTypeCodeComReqDto implementDataFilterSpecRecByTypeCodeComReqDto=new ImplementDataFilterSpecRecByTypeCodeComReqDto();
  if(reqDto!= null&&  reqDto.getSubCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getSubCycleList())){
      implementDataFilterSpecRecByTypeCodeComReqDto.setDataFilterSpecRecByTypeCodeList(//objList-to-objLists
        reqDto.getSubCycleList().stream().map(item -> {
      DataFilterSpecRecByTypeCodeDto elm = new DataFilterSpecRecByTypeCodeDto();
      if(item!=null){
      elm.setCommPrimaryKey(item.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:298040_2_60613
elm.setComCode(item.getCycleId());//SimpleFieldAssign//sourceId:304884_2_60613
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1521161_1_60613
    }
if(circulationCollectionsRes!=null){
      implementDataFilterSpecRecByTypeCodeComReqDto.setComCode(circulationCollectionsRes.getCycleId());//SimpleFieldAssign//sourceId:1521162_1_60613
    }

    /*D2-执行按上级子周期标识过滤下级子周期列表(公共)[5599]   */
    Assert.isNull(implementDataFilterSpecRecByTypeCodeComReqDto.getComCode(),"D7执行循环统计过滤下级子周期(公共)-D2-执行按上级子周期标识过滤下级子周期列表(公共)-通用编码标识不能为空",false);
      implementDataFilterSpecRecByTypeCodeComRespDto = fwCompInterfaceModeClient.implementDataFilterSpecRecByTypeCodeCom(implementDataFilterSpecRecByTypeCodeComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto implementCalculateTotalBudgetValueSubordinatesRecordComRespDto = null;
    if(implementDataFilterSpecRecByTypeCodeComRespDto !=null){
          ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto implementCalculateTotalBudgetValueSubordinatesRecordComReqDto=new ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto();
  implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1527951_1_60619
if(reqDto!=null){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1521286_1_60619
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527952_1_60619
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527954_1_60619
    }
if(implementDataFilterSpecRecByTypeCodeComRespDto!= null&&  implementDataFilterSpecRecByTypeCodeComRespDto.getDataFilterSpecRecByTypeCodeList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByTypeCodeComRespDto.getDataFilterSpecRecByTypeCodeList())){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setTargetBudgetSetList(implementDataFilterSpecRecByTypeCodeComRespDto.getDataFilterSpecRecByTypeCodeList().stream().map(item->item.getCommPrimaryKey())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1521287_1_60619
    }

    /*D7执行统计下级总预算值并记录redis(公共)[8426]   */
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getBudgetCycleModeTypeCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级总预算值并记录redis(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getEvaluationTemplateId(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级总预算值并记录redis(公共)-评价模板ID不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getDataObjectBatchCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级总预算值并记录redis(公共)-数据对象批次标识不能为空",false);
      implementCalculateTotalBudgetValueSubordinatesRecordComRespDto = implementCalculateTotalBudgetValueSubordinatesRecordCom(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto)/*vcase invoke 同服务,同domain*/;



           }
if((implementCalculateTotalBudgetValueSubordinatesRecordComRespDto!= null&& implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount() != null )) {
        //if(D7执行统计下级子周期总预算值并记录redis(当前牌记录子周期预算设置).周期预算金额 值不等于空 )  61719

ImplementCalculateProportionTargetBudgetComRespDto implementCalculateProportionTargetBudgetComRespDto = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto !=null){
          ImplementCalculateProportionTargetBudgetComReqDto implementCalculateProportionTargetBudgetComReqDto=new ImplementCalculateProportionTargetBudgetComReqDto();
  implementCalculateProportionTargetBudgetComReqDto.setBudgetCycleModeTypeCode("PARENT_CYCLE");//sourceId:1528222_1_61721
if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto!=null){
      implementCalculateProportionTargetBudgetComReqDto.setCycleBudgetAmount(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1527205_1_61721
    }
if(reqDto!=null){
      implementCalculateProportionTargetBudgetComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528218_1_61721
implementCalculateProportionTargetBudgetComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528219_1_61721
implementCalculateProportionTargetBudgetComReqDto.setEvaObjTargetCycleId(reqDto.getFatherEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528220_1_61721
implementCalculateProportionTargetBudgetComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528221_1_61721
    }

    /*D7执行计算目标预算占比(公共)[8448]   */
    Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getCycleBudgetAmount(),"D7执行循环统计过滤下级子周期(公共)-D7执行计算目标预算占比(公共)-周期预算金额不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getBudgetCycleModeTypeCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行计算目标预算占比(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getTargetCycleContentId(),"D7执行循环统计过滤下级子周期(公共)-D7执行计算目标预算占比(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getDataObjectBatchCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行计算目标预算占比(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getEvaObjTargetCycleId(),"D7执行循环统计过滤下级子周期(公共)-D7执行计算目标预算占比(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getEvaluationTemplateId(),"D7执行循环统计过滤下级子周期(公共)-D7执行计算目标预算占比(公共)-评价模板ID不能为空",false);
      implementCalculateProportionTargetBudgetComRespDto = implementCalculateProportionTargetBudgetCom(implementCalculateProportionTargetBudgetComReqDto)/*vcase invoke 同服务,同domain*/;



           }
AddTargetBudgetSetPersonalPreComRespDto addTargetBudgetSetPersonalPreComRespDto = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto !=null&&implementCalculateProportionTargetBudgetComRespDto !=null){
          AddTargetBudgetSetPersonalPreComReqDto addTargetBudgetSetPersonalPreComReqDto=new AddTargetBudgetSetPersonalPreComReqDto();
  addTargetBudgetSetPersonalPreComReqDto.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1526998_1_61722
if(reqDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1526999_1_61722
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue3(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1528052_1_61722
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue6(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1527005_1_61722
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue7(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527006_1_61722
    }
if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue1(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount()!=null?String.valueOf(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount()):"");//SimpleFieldAssign//sourceId:1527000_1_61722
    }
if(implementCalculateProportionTargetBudgetComRespDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue2(implementCalculateProportionTargetBudgetComRespDto.getCalcResult()!=null?String.valueOf(implementCalculateProportionTargetBudgetComRespDto.getCalcResult()):"");//SimpleFieldAssign//sourceId:1527001_1_61722
    }
if(circulationCollectionsRes!=null){
      addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue4(circulationCollectionsRes.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1527003_1_61722
    }

    /*D2-新增目标预算设置个性准备(redis)[8435]   */
    Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getBusinessDataObject(),"D7执行循环统计过滤下级子周期(公共)-D2-新增目标预算设置个性准备(redis)-业务数据对象不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue1(),"D7执行循环统计过滤下级子周期(公共)-D2-新增目标预算设置个性准备(redis)-周期预算金额不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue3(),"D7执行循环统计过滤下级子周期(公共)-D2-新增目标预算设置个性准备(redis)-预算周期模型编码不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue4(),"D7执行循环统计过滤下级子周期(公共)-D2-新增目标预算设置个性准备(redis)-被评对象目标周期ID不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue6(),"D7执行循环统计过滤下级子周期(公共)-D2-新增目标预算设置个性准备(redis)-关联目标内容类型编码不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue7(),"D7执行循环统计过滤下级子周期(公共)-D2-新增目标预算设置个性准备(redis)-关联目标内容ID不能为空",false);
      addTargetBudgetSetPersonalPreComRespDto = fwCompFinanceClient.addTargetBudgetSetPersonalPreCom(addTargetBudgetSetPersonalPreComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementCalculateSourceValueFundsSubordinateSubCyclesComRespDto implementCalculateSourceValueFundsSubordinateSubCyclesComRespDto = null;
    if(implementDataFilterSpecRecByTypeCodeComRespDto !=null){
          ImplementCalculateSourceValueFundsSubordinateSubCyclesComReqDto implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto=new ImplementCalculateSourceValueFundsSubordinateSubCyclesComReqDto();
  if(implementDataFilterSpecRecByTypeCodeComRespDto!= null&&  implementDataFilterSpecRecByTypeCodeComRespDto.getDataFilterSpecRecByTypeCodeList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByTypeCodeComRespDto.getDataFilterSpecRecByTypeCodeList())){
      implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.setSubCycleList(implementDataFilterSpecRecByTypeCodeComRespDto.getDataFilterSpecRecByTypeCodeList().stream().map(item->item.getCommPrimaryKey())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1523375_1_61723
    }
if(circulationCollectionsRes!=null){
      implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.setParentEvaObjTargetCycleId(circulationCollectionsRes.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1524441_1_61723
    }
if(reqDto!=null){
      implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527643_1_61723
implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1527644_1_61723
implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527645_1_61723
implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1523376_1_61723
implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1523377_1_61723
    }

    /*D7执行统计下级子周期资金来源值(公共)[8429]   */
    Assert.isNull(implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.getParentEvaObjTargetCycleId(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级子周期资金来源值(公共)-上级被评对象目标周期ID不能为空",false);
Assert.isNull(implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.getTargetCycleContentId(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级子周期资金来源值(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.getTargetCycleContentTypeCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级子周期资金来源值(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.getDataObjectBatchCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级子周期资金来源值(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.getEvaluationTemplateId(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级子周期资金来源值(公共)-评价模板ID不能为空",false);
Assert.isNull(implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto.getIsLastStaticAccount(),"D7执行循环统计过滤下级子周期(公共)-D7执行统计下级子周期资金来源值(公共)-是否末级统计账户不能为空",false);
      implementCalculateSourceValueFundsSubordinateSubCyclesComRespDto = implementCalculateSourceValueFundsSubordinateSubCyclesCom(implementCalculateSourceValueFundsSubordinateSubCyclesComReqDto)/*vcase invoke 同服务,同domain*/;



           }
      }
ImplementRevisedBudgetRatioComRespDto implementRevisedBudgetRatioComRespDto = null;
    if(queryFinaceDecimalPointDetailComRespDto !=null){
          ImplementRevisedBudgetRatioComReqDto implementRevisedBudgetRatioComReqDto=new ImplementRevisedBudgetRatioComReqDto();
  implementRevisedBudgetRatioComReqDto.setRevisedBudgetRatioTypeCode("BUDGET_REDIS_SET");//sourceId:1831287_1_69275
  implementRevisedBudgetRatioComReqDto.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1823742_1_69275
if(reqDto!=null){
      implementRevisedBudgetRatioComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1831288_1_69275
implementRevisedBudgetRatioComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823745_1_69275
    }
if(circulationCollectionsRes!=null){
      implementRevisedBudgetRatioComReqDto.setEvaObjTargetCycleId(circulationCollectionsRes.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1823744_1_69275
    }
if(queryFinaceDecimalPointDetailComRespDto!=null){
      implementRevisedBudgetRatioComReqDto.setDecimalPointRules(queryFinaceDecimalPointDetailComRespDto.getFinaceDecimalPoint());//SimpleFieldAssign//sourceId:1823746_1_69275
implementRevisedBudgetRatioComReqDto.setDecimalDigitsLastRules(queryFinaceDecimalPointDetailComRespDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1823747_1_69275
    }

    /*D7执行修正预算来源占比(公共)[9672]   */
    Assert.isNull(implementRevisedBudgetRatioComReqDto.getRevisedBudgetRatioTypeCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算来源占比(公共)-修正预算占比类型不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getDataObjectBatchCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算来源占比(公共)-数据对象批次标识不能为空",false);
    Assert.isNull(implementRevisedBudgetRatioComReqDto.getBudgetCycleModeTypeCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算来源占比(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getEvaObjTargetCycleId(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算来源占比(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getEvaluationTemplateId(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算来源占比(公共)-评价模板ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getDecimalPointRules(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算来源占比(公共)-小数点规则不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto.getDecimalDigitsLastRules(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算来源占比(公共)-小数最后一位规则不能为空",false);
      implementRevisedBudgetRatioComRespDto = implementRevisedBudgetRatioCom(implementRevisedBudgetRatioComReqDto)/*vcase invoke 同服务,同domain*/;



           }
//ModelCode: circulationEnd
        }

ImplementRevisedBudgetRatioComRespDto implementRevisedBudgetRatioComRespDto_1 = null;
    if(queryFinaceDecimalPointDetailComRespDto !=null){
          ImplementRevisedBudgetRatioComReqDto implementRevisedBudgetRatioComReqDto_1=new ImplementRevisedBudgetRatioComReqDto();
  implementRevisedBudgetRatioComReqDto_1.setRevisedBudgetRatioTypeCode("BUDGET_REDIS_SET");//sourceId:1831289_1_69276
  implementRevisedBudgetRatioComReqDto_1.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1823748_1_69276
if(reqDto!=null){
      implementRevisedBudgetRatioComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1831290_1_69276
      implementRevisedBudgetRatioComReqDto_1.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1823749_1_69276
implementRevisedBudgetRatioComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823751_1_69276
    }
if(queryFinaceDecimalPointDetailComRespDto!=null){
      implementRevisedBudgetRatioComReqDto_1.setDecimalPointRules(queryFinaceDecimalPointDetailComRespDto.getFinaceDecimalPoint());//SimpleFieldAssign//sourceId:1823752_1_69276
implementRevisedBudgetRatioComReqDto_1.setDecimalDigitsLastRules(queryFinaceDecimalPointDetailComRespDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1823753_1_69276
    }

    /*D7执行修正预算子周期占比(公共)[9672]   */
    Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getRevisedBudgetRatioTypeCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算子周期占比(公共)-修正预算占比类型不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getDataObjectBatchCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算子周期占比(公共)-数据对象批次标识不能为空",false);
    Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getBudgetCycleModeTypeCode(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算子周期占比(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getTargetCycleContentId(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算子周期占比(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getEvaluationTemplateId(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算子周期占比(公共)-评价模板ID不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getDecimalPointRules(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算子周期占比(公共)-小数点规则不能为空",false);
Assert.isNull(implementRevisedBudgetRatioComReqDto_1.getDecimalDigitsLastRules(),"D7执行循环统计过滤下级子周期(公共)-D7执行修正预算子周期占比(公共)-小数最后一位规则不能为空",false);
      implementRevisedBudgetRatioComRespDto_1 = implementRevisedBudgetRatioCom(implementRevisedBudgetRatioComReqDto_1)/*vcase invoke 同服务,同domain*/;



           }
      }
else{
       //else  61717

//异常结束 61718
      throw new BizException("500","系统异常，请联系管理员！",false);
      }
ImplementRecurrentCountFilterSubCyclesComRespDto retData = new ImplementRecurrentCountFilterSubCyclesComRespDto();





return retData;
  }
/**
   * D7执行统计下级子周期资金来源值(公共)[8429]
   * gen by moon at 5/28/2024, 11:57:59 AM
   */
  @Trace(operationName = "D7执行统计下级子周期资金来源值(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementCalculateSourceValueFundsSubordinateSubCyclesComRespDto implementCalculateSourceValueFundsSubordinateSubCyclesCom(ImplementCalculateSourceValueFundsSubordinateSubCyclesComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getSubCycleList() !=null && reqDto.getSubCycleList().size()>0)) {
        //if(D7执行统计下级子周期资金来源值(公共).子周期列表数据集条数 大于 0)  60652

ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto implementCalculateTotalBudgetValueSubordinatesRecordComRespDto = null;
    ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto implementCalculateTotalBudgetValueSubordinatesRecordComReqDto=new ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto();
  implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1559852_1_61760
if(reqDto!=null){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1559847_1_61760
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1559853_1_61760
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1559851_1_61760
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setTargetBudgetSetList(reqDto.getSubCycleList());//list-field-assign//sourceId:1559848_1_61760
    }

    /*D7批量查询下级资金来源列表(查数据库或redis)[8426]   */
    Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getIsLastStaticAccount(),"D7执行统计下级子周期资金来源值(公共)-D7批量查询下级资金来源列表(查数据库或redis)-是否末级统计账户不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getBudgetCycleModeTypeCode(),"D7执行统计下级子周期资金来源值(公共)-D7批量查询下级资金来源列表(查数据库或redis)-预算周期模型编码不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getEvaluationTemplateId(),"D7执行统计下级子周期资金来源值(公共)-D7批量查询下级资金来源列表(查数据库或redis)-评价模板ID不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getDataObjectBatchCode(),"D7执行统计下级子周期资金来源值(公共)-D7批量查询下级资金来源列表(查数据库或redis)-数据对象批次标识不能为空",false);
      implementCalculateTotalBudgetValueSubordinatesRecordComRespDto = implementCalculateTotalBudgetValueSubordinatesRecordCom(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto)/*vcase invoke 同服务,同domain*/;



if((implementCalculateTotalBudgetValueSubordinatesRecordComRespDto!= null&&  implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getTargetBudgetSetList() !=null && implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getTargetBudgetSetList().size()>0)) {
        //if(D7当前发牌子周期批量查所有下级子周期资金来源的目标预算设置(查数据库或redis).目标预算设置列表数据集条数 大于 0)  61733

ImplementDataSetDuplicateRemovalComRespDto implementDataSetDuplicateRemovalComRespDto = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto !=null){
          ImplementDataSetDuplicateRemovalComReqDto implementDataSetDuplicateRemovalComReqDto=new ImplementDataSetDuplicateRemovalComReqDto();
  if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto!=null){
      implementDataSetDuplicateRemovalComReqDto.setDataSetDuplicateRemovalList(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getTargetBudgetSetList());//list-field-assign//sourceId:1521666_1_61734
    }

    /*D2执行资金来源去重（用于当前目标内容当前一个子周期）[5138]   */

      implementDataSetDuplicateRemovalComRespDto = fwCompInterfaceModeClient.implementDataSetDuplicateRemovalCom(implementDataSetDuplicateRemovalComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    if(implementDataSetDuplicateRemovalComRespDto !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(implementDataSetDuplicateRemovalComRespDto!=null){
      receptionServiceReq.setAccountCapitalSourceList(implementDataSetDuplicateRemovalComRespDto.getDataSetDuplicateRemovalList());//list-field-assign//sourceId:1560470_1_61800
    }

    /*M7-接收资金来源数据集[7656]  用于特殊方法接收上游入参。 */

      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);



           }
//ModelCode: circulationCollections
        for (String circulationCollectionsRes: receptionServiceRes.getAccountCapitalSourceList()){

ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 = null;
    ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1=new ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto();
  implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1527940_1_61737
if(reqDto!=null){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1521556_1_61737
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528168_1_61737
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527941_1_61737
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setTargetBudgetSetList(reqDto.getSubCycleList());//list-field-assign//sourceId:1521557_1_61737
    }
if(circulationCollectionsRes!=null){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setCapitalSourceId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1522624_1_61737
    }

    /*D7执行统计下级总预算值并记录redis(公共)[8426]   */
    Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getIsLastStaticAccount(),"D7执行统计下级子周期资金来源值(公共)-D7执行统计下级总预算值并记录redis(公共)-是否末级统计账户不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getBudgetCycleModeTypeCode(),"D7执行统计下级子周期资金来源值(公共)-D7执行统计下级总预算值并记录redis(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getDataObjectBatchCode(),"D7执行统计下级子周期资金来源值(公共)-D7执行统计下级总预算值并记录redis(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getEvaluationTemplateId(),"D7执行统计下级子周期资金来源值(公共)-D7执行统计下级总预算值并记录redis(公共)-评价模板ID不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getCapitalSourceId(),"D7执行统计下级子周期资金来源值(公共)-D7执行统计下级总预算值并记录redis(公共)-资金来源ID不能为空",false);
      implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 = implementCalculateTotalBudgetValueSubordinatesRecordCom(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1)/*vcase invoke 同服务,同domain*/;



if((implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2!= null&& implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount() != null )) {
        //if(D7执行统计下级总预算值并记录redis(公共).周期预算金额 值不等于空 )  61738

ImplementCalculateProportionTargetBudgetComRespDto implementCalculateProportionTargetBudgetComRespDto = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 !=null){
          ImplementCalculateProportionTargetBudgetComReqDto implementCalculateProportionTargetBudgetComReqDto=new ImplementCalculateProportionTargetBudgetComReqDto();
  implementCalculateProportionTargetBudgetComReqDto.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1528217_1_61739
if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2!=null){
      implementCalculateProportionTargetBudgetComReqDto.setCycleBudgetAmount(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1527196_1_61739
    }
if(reqDto!=null){
      implementCalculateProportionTargetBudgetComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528214_1_61739
implementCalculateProportionTargetBudgetComReqDto.setEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528215_1_61739
implementCalculateProportionTargetBudgetComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528213_1_61739
implementCalculateProportionTargetBudgetComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528216_1_61739
    }

    /*D7执行计算目标预算占比(公共)[8448]   */
    Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getCycleBudgetAmount(),"D7执行统计下级子周期资金来源值(公共)-D7执行计算目标预算占比(公共)-周期预算金额不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getBudgetCycleModeTypeCode(),"D7执行统计下级子周期资金来源值(公共)-D7执行计算目标预算占比(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getDataObjectBatchCode(),"D7执行统计下级子周期资金来源值(公共)-D7执行计算目标预算占比(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getEvaObjTargetCycleId(),"D7执行统计下级子周期资金来源值(公共)-D7执行计算目标预算占比(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getTargetCycleContentId(),"D7执行统计下级子周期资金来源值(公共)-D7执行计算目标预算占比(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementCalculateProportionTargetBudgetComReqDto.getEvaluationTemplateId(),"D7执行统计下级子周期资金来源值(公共)-D7执行计算目标预算占比(公共)-评价模板ID不能为空",false);
      implementCalculateProportionTargetBudgetComRespDto = implementCalculateProportionTargetBudgetCom(implementCalculateProportionTargetBudgetComReqDto)/*vcase invoke 同服务,同domain*/;



           }
AddTargetBudgetSetPersonalPreComRespDto addTargetBudgetSetPersonalPreComRespDto = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 !=null&&implementCalculateProportionTargetBudgetComRespDto !=null){
          AddTargetBudgetSetPersonalPreComReqDto addTargetBudgetSetPersonalPreComReqDto=new AddTargetBudgetSetPersonalPreComReqDto();
  addTargetBudgetSetPersonalPreComReqDto.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1526891_1_61740
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue3("CAPITAL_SOURCE");//CUSTOM_CONVENTION//sourceId:1526895_1_61740
if(reqDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1526892_1_61740
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue4(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1526896_1_61740
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue6(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1526898_1_61740
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue7(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1526899_1_61740
    }
if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2!=null){
      addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue1(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount()!=null?String.valueOf(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount()):"");//SimpleFieldAssign//sourceId:1526893_1_61740
    }
if(implementCalculateProportionTargetBudgetComRespDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue2(implementCalculateProportionTargetBudgetComRespDto.getCalcResult()!=null?String.valueOf(implementCalculateProportionTargetBudgetComRespDto.getCalcResult()):"");//SimpleFieldAssign//sourceId:1526894_1_61740
    }
if(circulationCollectionsRes!=null){
      addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue5(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1526897_1_61740
    }

    /*D2-新增目标预算设置个性准备(redis)[8435]   */
    Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getBusinessDataObject(),"D7执行统计下级子周期资金来源值(公共)-D2-新增目标预算设置个性准备(redis)-业务数据对象不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue1(),"D7执行统计下级子周期资金来源值(公共)-D2-新增目标预算设置个性准备(redis)-周期预算金额不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue2(),"D7执行统计下级子周期资金来源值(公共)-D2-新增目标预算设置个性准备(redis)-预算金额占比不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue3(),"D7执行统计下级子周期资金来源值(公共)-D2-新增目标预算设置个性准备(redis)-自定义字段值3不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue4(),"D7执行统计下级子周期资金来源值(公共)-D2-新增目标预算设置个性准备(redis)-被评对象目标周期ID不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue5(),"D7执行统计下级子周期资金来源值(公共)-D2-新增目标预算设置个性准备(redis)-资金来源ID不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue6(),"D7执行统计下级子周期资金来源值(公共)-D2-新增目标预算设置个性准备(redis)-关联目标内容类型编码不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue7(),"D7执行统计下级子周期资金来源值(公共)-D2-新增目标预算设置个性准备(redis)-关联目标内容ID不能为空",false);
      addTargetBudgetSetPersonalPreComRespDto = fwCompFinanceClient.addTargetBudgetSetPersonalPreCom(addTargetBudgetSetPersonalPreComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
           }
//ModelCode: circulationEnd
        }

      }
      }
else{
       //else  61741

//异常结束 61742
      throw new BizException("C00028","对不起，没有数据！！",false);
      }
ImplementCalculateSourceValueFundsSubordinateSubCyclesComRespDto retData = new ImplementCalculateSourceValueFundsSubordinateSubCyclesComRespDto();





return retData;
  }
/**
   * D7-执行统计下级账户更新当前账户并推Redis(公共)[8437]
   * gen by moon at 3/7/2024, 3:55:49 AM
   */
  @Trace(operationName = "D7-执行统计下级账户更新当前账户并推Redis(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementCountSubAcctAndUpdateCurAcctComRespDto implementCountSubAcctAndUpdateCurAcctCom(ImplementCountSubAcctAndUpdateCurAcctComReqDto reqDto){


      //virtualUsage 7-1-01查询资金账户列表  60680
      List<OmsAccount> listOmsAccount =new ArrayList<>();
    QueryFinanceAccountListReq queryFinanceAccountListReq=new QueryFinanceAccountListReq();
  queryFinanceAccountListReq.setAccountStatus("NORMAL");//sourceId:1524996_1_60680
queryFinanceAccountListReq.setIsEndStatus("FALSE");//sourceId:1524997_1_60680
queryFinanceAccountListReq.setAccountTypeCode("ECOLOGICAL_ACCOUNT");//sourceId:1524998_1_60680
queryFinanceAccountListReq.setAccountObjectClass("CONTENT_TYPE");//sourceId:1525001_1_60680
queryFinanceAccountListReq.setDistributionSystemTypeCode("CAPITAL_SYSTEM");//sourceId:1525002_1_60680
queryFinanceAccountListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1525003_1_60680
queryFinanceAccountListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1525004_1_60680
if(reqDto!=null){
      queryFinanceAccountListReq.setParentAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1525006_1_60680
queryFinanceAccountListReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1524999_1_60680
queryFinanceAccountListReq.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1525005_1_60680
    }

    /*7-1-01查询资金账户列表[8419]   */
    Assert.isNull(queryFinanceAccountListReq.getParentAccountContentCode(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-上级账户归属主体标识不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getIsBudgetAccount(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getThemeContentId(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountStatus(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-账户状态不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getIsEndStatus(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-是否结束状态不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountTypeCode(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-账户类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountObjectClass(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getDistributionSystemTypeCode(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-发行体系类型编码不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSubjectLifeCycle(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-主体生命周期不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSpaceId(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01查询资金账户列表-创建于空间ID不能为空",false);
      listOmsAccount = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq)/*vcase invoke 本地 method 方法调用;*/;



if((listOmsAccount!= null&&  listOmsAccount !=null && listOmsAccount.size()>0)) {
        //if(7-1-01查下级资金账户列表.资金账户列表数据集条数 大于 0)  60681

CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:298804_2_60682
elm.setCalcPara1(item.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:298805_2_60682
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1525008_1_60682
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_2 = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_1=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto_1.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:298804_2_60683
elm.setCalcPara1(item.getAccountActualBalance());//SimpleFieldAssign//sourceId:298805_2_60683
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1525008_1_60683
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_2 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_3 = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_2=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto_2.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:298804_2_60684
elm.setCalcPara1(item.getSettlableBalance());//SimpleFieldAssign//sourceId:298805_2_60684
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1525008_1_60684
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_3 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_4 = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_3=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto_3.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:298804_2_60685
elm.setCalcPara1(item.getUnSettlableBalance());//SimpleFieldAssign//sourceId:298805_2_60685
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1525008_1_60685
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_4 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_3).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_5 = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_4=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto_4.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:298804_2_60686
elm.setCalcPara1(item.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:298805_2_60686
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1525008_1_60686
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_5 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_4).getData()/*vcase invoke 跨dubbo调用;*/;



           }
boolean bOOLEAN ;
    if(calculateSumOfMultipleNumServiceComRespDto !=null&&calculateSumOfMultipleNumServiceComRespDto_2 !=null&&calculateSumOfMultipleNumServiceComRespDto_3 !=null&&calculateSumOfMultipleNumServiceComRespDto_4 !=null&&calculateSumOfMultipleNumServiceComRespDto_5 !=null){
          OmsAccount omsAccount=new OmsAccount();
  omsAccount.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1525019_1_60687
omsAccount.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1525020_1_60687
if(reqDto!=null){
      omsAccount.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1525012_1_60687
    }
if(calculateSumOfMultipleNumServiceComRespDto!=null){
      omsAccount.setTotalBudgetAmount(calculateSumOfMultipleNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1525014_1_60687
    }
if(calculateSumOfMultipleNumServiceComRespDto_2!=null){
      omsAccount.setAccountActualBalance(calculateSumOfMultipleNumServiceComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1525015_1_60687
    }
if(calculateSumOfMultipleNumServiceComRespDto_3!=null){
      omsAccount.setSettlableBalance(calculateSumOfMultipleNumServiceComRespDto_3.getCalcResult());//SimpleFieldAssign//sourceId:1525016_1_60687
    }
if(calculateSumOfMultipleNumServiceComRespDto_4!=null){
      omsAccount.setUnSettlableBalance(calculateSumOfMultipleNumServiceComRespDto_4.getCalcResult());//SimpleFieldAssign//sourceId:1525017_1_60687
    }
if(calculateSumOfMultipleNumServiceComRespDto_5!=null){
      omsAccount.setAccruedSettledAmount(calculateSumOfMultipleNumServiceComRespDto_5.getCalcResult());//SimpleFieldAssign//sourceId:1525018_1_60687
    }

    /*7-1-01修改资金账户[8368]   */
    Assert.isNull(omsAccount.getAccountId(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01修改资金账户-账户ID不能为空",false);
Assert.isNull(omsAccount.getTotalBudgetAmount(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01修改资金账户-总金额不能为空",false);
Assert.isNull(omsAccount.getAccountActualBalance(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01修改资金账户-账户余额不能为空",false);
Assert.isNull(omsAccount.getSettlableBalance(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01修改资金账户-可用金额不能为空",false);
Assert.isNull(omsAccount.getUnSettlableBalance(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01修改资金账户-冻结金额不能为空",false);
Assert.isNull(omsAccount.getAccruedSettledAmount(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01修改资金账户-累计结算金额不能为空",false);
Assert.isNull(omsAccount.getOperationInductionId(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01修改资金账户-操作人就职记录ID不能为空",false);
Assert.isNull(omsAccount.getOperateTime(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-7-1-01修改资金账户-操作时间不能为空",false);
      bOOLEAN = mOmsAccountService.updateFinanceAccount(omsAccount)/*vcase invoke 本地 method 方法调用;*/;



           }
AddPersonPreFinStandardDataSnapshotAccComRespDto addPersonPreFinStandardDataSnapshotAccComRespDto = null;
    if(calculateSumOfMultipleNumServiceComRespDto_2 !=null&&calculateSumOfMultipleNumServiceComRespDto_3 !=null&&calculateSumOfMultipleNumServiceComRespDto_4 !=null&&calculateSumOfMultipleNumServiceComRespDto_5 !=null&&calculateSumOfMultipleNumServiceComRespDto !=null){
          AddPersonPreFinStandardDataSnapshotAccComReqDto addPersonPreFinStandardDataSnapshotAccComReqDto=new AddPersonPreFinStandardDataSnapshotAccComReqDto();
  addPersonPreFinStandardDataSnapshotAccComReqDto.setBusinessDataObject("ACCT_STD_DATA_AMT_SNAP");//sourceId:1528010_1_60739
if(reqDto!=null){
      addPersonPreFinStandardDataSnapshotAccComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528011_1_60739
addPersonPreFinStandardDataSnapshotAccComReqDto.setCustomFieldValue1(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1528012_1_60739
addPersonPreFinStandardDataSnapshotAccComReqDto.setCustomFieldValue7(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1539066_1_60739
    }
if(calculateSumOfMultipleNumServiceComRespDto_2!=null){
      addPersonPreFinStandardDataSnapshotAccComReqDto.setCustomFieldValue2(calculateSumOfMultipleNumServiceComRespDto_2.getCalcResult()!=null?String.valueOf(calculateSumOfMultipleNumServiceComRespDto_2.getCalcResult()):"");//SimpleFieldAssign//sourceId:1528013_1_60739
    }
if(calculateSumOfMultipleNumServiceComRespDto_3!=null){
      addPersonPreFinStandardDataSnapshotAccComReqDto.setCustomFieldValue3(calculateSumOfMultipleNumServiceComRespDto_3.getCalcResult()!=null?String.valueOf(calculateSumOfMultipleNumServiceComRespDto_3.getCalcResult()):"");//SimpleFieldAssign//sourceId:1528014_1_60739
    }
if(calculateSumOfMultipleNumServiceComRespDto_4!=null){
      addPersonPreFinStandardDataSnapshotAccComReqDto.setCustomFieldValue4(calculateSumOfMultipleNumServiceComRespDto_4.getCalcResult()!=null?String.valueOf(calculateSumOfMultipleNumServiceComRespDto_4.getCalcResult()):"");//SimpleFieldAssign//sourceId:1528015_1_60739
    }
if(calculateSumOfMultipleNumServiceComRespDto_5!=null){
      addPersonPreFinStandardDataSnapshotAccComReqDto.setCustomFieldValue5(calculateSumOfMultipleNumServiceComRespDto_5.getCalcResult()!=null?String.valueOf(calculateSumOfMultipleNumServiceComRespDto_5.getCalcResult()):"");//SimpleFieldAssign//sourceId:1528016_1_60739
    }
if(calculateSumOfMultipleNumServiceComRespDto!=null){
      addPersonPreFinStandardDataSnapshotAccComReqDto.setCustomFieldValue6(calculateSumOfMultipleNumServiceComRespDto.getCalcResult()!=null?String.valueOf(calculateSumOfMultipleNumServiceComRespDto.getCalcResult()):"");//SimpleFieldAssign//sourceId:1528017_1_60739
    }

    /*D2-新增财务账户标准数据快照个性准备(账户reids)[8440]   */
    Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getBusinessDataObject(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-业务数据对象不能为空",false);
Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getDataObjectBatchCode(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-数据对象批次标识不能为空",false);
Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getCustomFieldValue1(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-账户ID不能为空",false);
Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getCustomFieldValue2(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-账户余额不能为空",false);
Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getCustomFieldValue3(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-可用金额不能为空",false);
Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getCustomFieldValue4(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-冻结金额不能为空",false);
Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getCustomFieldValue5(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-累计结算金额不能为空",false);
Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getCustomFieldValue6(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-总金额不能为空",false);
Assert.isNull(addPersonPreFinStandardDataSnapshotAccComReqDto.getCustomFieldValue7(),"D7-执行统计下级账户更新当前账户并推Redis(公共)-D2-新增财务账户标准数据快照个性准备(账户reids)-是否预算账户不能为空",false);
      addPersonPreFinStandardDataSnapshotAccComRespDto = fwCompStandardDataClient.addPersonPreFinStandardDataSnapshotAccCom(addPersonPreFinStandardDataSnapshotAccComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
      }
else{
       //else  60689

//异常结束 60690
      throw new BizException("C00028","对不起，没有数据！！",false);
    }
ImplementCountSubAcctAndUpdateCurAcctComRespDto retData = new ImplementCountSubAcctAndUpdateCurAcctComRespDto();





return retData;
  }
/**
   * D7执行统计下级目标预算redis临时值(公共)[8423]
   * gen by moon at 2/26/2024, 2:49:06 PM
   */
  @Trace(operationName = "D7执行统计下级目标预算redis临时值(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementCountTempBudgetValuesSubordinateTargetsComRespDto implementCountTempBudgetValuesSubordinateTargetsCom(ImplementCountTempBudgetValuesSubordinateTargetsComReqDto reqDto){


      QueryTargetBudgetSetPersonalPreRefListComRespDto queryTargetBudgetSetPersonalPreRefListComRespDto_1 =null;
      CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_1 =null;
if((reqDto!= null&&  reqDto.getTargetBudgetSetList() !=null && reqDto.getTargetBudgetSetList().size()>0)) {
        //if(D7执行统计下级目标预算redis临时值(公共).目标预算设置列表数据集条数 大于 0)  61709

     QueryTargetBudgetSetPersonalPreRefListComRespDto queryTargetBudgetSetPersonalPreRefListComRespDto = null;
    QueryTargetBudgetSetPersonalPreRefListComReqDto queryTargetBudgetSetPersonalPreRefListComReqDto=new QueryTargetBudgetSetPersonalPreRefListComReqDto();
  queryTargetBudgetSetPersonalPreRefListComReqDto.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1527521_1_61710
if(reqDto!=null){
      queryTargetBudgetSetPersonalPreRefListComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527522_1_61710
queryTargetBudgetSetPersonalPreRefListComReqDto.setRefRedisBusinessDataList(reqDto.getTargetBudgetSetList());//list-field-assign//sourceId:1527933_1_61710
queryTargetBudgetSetPersonalPreRefListComReqDto.setRefCustomFieldValue1(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1537578_1_61710
queryTargetBudgetSetPersonalPreRefListComReqDto.setRefCustomFieldValue3(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1537579_1_61710
queryTargetBudgetSetPersonalPreRefListComReqDto.setRefCustomFieldValue4(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1559760_1_61710
    }

    /*D2-查询目标预算设置个性准备部分数据列表（入参查redis）[8445]   */
    Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getBusinessDataObject(),"D7执行统计下级目标预算redis临时值(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-业务数据对象不能为空",false);
Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getDataObjectBatchCode(),"D7执行统计下级目标预算redis临时值(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-数据对象批次标识不能为空",false);
Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getRefCustomFieldValue1(),"D7执行统计下级目标预算redis临时值(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-预算周期模型编码不能为空",false);
      queryTargetBudgetSetPersonalPreRefListComRespDto = fwCompFinanceClient.queryTargetBudgetSetPersonalPreRefListCom(queryTargetBudgetSetPersonalPreRefListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryTargetBudgetSetPersonalPreRefListComRespDto_1 = queryTargetBudgetSetPersonalPreRefListComRespDto;
if((queryTargetBudgetSetPersonalPreRefListComRespDto!= null&&  queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList() !=null && queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList().size()>0)) {
        //if(D2-查询目标预算设置个性准备部分数据列表（入参查redis）.出参redis业务数据对象列表数据集条数 大于 0)  61711

     CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto = null;
    if(queryTargetBudgetSetPersonalPreRefListComRespDto !=null){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto=new CalculateSumOfMultipleNumServiceComReqDto();
  if(queryTargetBudgetSetPersonalPreRefListComRespDto!= null&&  queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList() !=null&& !CollectionUtil.isEmpty(queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList())){
      calculateSumOfMultipleNumServiceComReqDto.setSumOfMultipleNumList(//objList-to-objLists
        queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList().stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      if(item!=null){
      elm.setCommPrimaryKey(item.getEvaObjTargetCycleId()!=null?String.valueOf(item.getEvaObjTargetCycleId()):"");//SimpleFieldAssign//sourceId:298901_2_61712
elm.setCalcPara1(item.getCycleBudgetAmount()!=null?Double.valueOf(item.getCycleBudgetAmount()):null);//SimpleFieldAssign//sourceId:298902_2_61712
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1525876_1_61712
    }

    /*D4-计算数据集求和服务(公共)[3375]   */

      calculateSumOfMultipleNumServiceComRespDto = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      calculateSumOfMultipleNumServiceComRespDto_1 = calculateSumOfMultipleNumServiceComRespDto;
           }
      }
      }
ImplementCountTempBudgetValuesSubordinateTargetsComRespDto retData = new ImplementCountTempBudgetValuesSubordinateTargetsComRespDto();
  if(calculateSumOfMultipleNumServiceComRespDto_1!=null){
      retData.setCalcResult(calculateSumOfMultipleNumServiceComRespDto_1.getCalcResult());//SimpleFieldAssign//sourceId:1526308_1
    }
if(queryTargetBudgetSetPersonalPreRefListComRespDto_1!= null&&  queryTargetBudgetSetPersonalPreRefListComRespDto_1.getRedisBusinessDataResList() !=null&& !CollectionUtil.isEmpty(queryTargetBudgetSetPersonalPreRefListComRespDto_1.getRedisBusinessDataResList())){
      retData.setTargetBudgetSetList(queryTargetBudgetSetPersonalPreRefListComRespDto_1.getRedisBusinessDataResList().stream().map(item->String.valueOf(item.getCapitalSourceId()))
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1559842_1
    }




return retData;
  }
/**
   * D7执行初始化目标周期预算设置(公共)[8447]
   * gen by moon at 2/19/2024, 12:44:04 PM
   */
  @Trace(operationName = "D7执行初始化目标周期预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeTargetCycleBudgetSetComRespDto implementInitializeTargetCycleBudgetSetCom(ImplementInitializeTargetCycleBudgetSetComReqDto reqDto){


      ImplementReceiveFieldInputRespDto receptionServiceRes_5 =null;
      //virtualUsage M7约定预算周期模型编码（父中子）  60744
      //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq.setCustomField1("PARENT_CYCLE");//CUSTOM_CONVENTION//sourceId:1528170_1_60744
receptionServiceReq.setCustomField2("METAPHASE");//CUSTOM_CONVENTION//sourceId:1528171_1_60744
receptionServiceReq.setCustomField3("SUB_CYCLE");//CUSTOM_CONVENTION//sourceId:1528177_1_60744

    /*M7约定预算周期模型编码（父中子）[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField1(),"D7执行初始化目标周期预算设置(公共)-M7约定预算周期模型编码（父中子）-自定义字段1不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField2(),"D7执行初始化目标周期预算设置(公共)-M7约定预算周期模型编码（父中子）-自定义字段2不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField3(),"D7执行初始化目标周期预算设置(公共)-M7约定预算周期模型编码（父中子）-自定义字段3不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);



//virtualUsage M7约定预算是否已设置为否  60770
      //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_2 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_1=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq_1.setIsBudgetSeted("FALSE");//sourceId:1528826_1_60770

    /*M7约定预算是否已设置为否[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-M7约定预算是否已设置为否-预算是否已设置不能为空",false);
      receptionServiceRes_2 = nbFinance.implementReceiveFieldInput(receptionServiceReq_1);



if((reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("FATHER_SON_CYCLE"))) {
        //if(D7执行初始化目标周期预算设置(公共).周期模式类型编码 等于 父子周期)  60738

OmsTargetCostset omsTargetCostset = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq.setIsArchive("FALSE");//sourceId:1528612_1_60740
queryTargetBudgetSetDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1528613_1_60740
if(reqDto!=null){
      queryTargetBudgetSetDetailReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528020_1_60740
queryTargetBudgetSetDetailReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528022_1_60740
queryTargetBudgetSetDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528031_1_60740
    }
if(receptionServiceRes!=null){
      queryTargetBudgetSetDetailReq.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1528019_1_60740
    }

    /*7-1-07查询目标预算设置（用于判断是否已存在）[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq.getEvaObjTargetCycleId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getTargetCycleContentId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getEvaluationTemplateId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getBudgetCycleModeTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getIsArchive(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-是否存档不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getSpaceId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-创建于空间ID不能为空",false);
      omsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsTargetCostset == null )) {
        //if(7-1-07查询目标预算设置（用于判断是否已存在）.出参 值等于空 )  60741

String string = null;
    OmsTargetCostset omsTargetCostset_2=new OmsTargetCostset();
  omsTargetCostset_2.setCycleBudgetAmount(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1527972_1_60742
omsTargetCostset_2.setBudgetRate(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1528066_1_60742
omsTargetCostset_2.setIsBudgetSeted("FALSE");//sourceId:1528065_1_60742
omsTargetCostset_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1527980_1_60742
if(reqDto!=null){
      omsTargetCostset_2.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1527973_1_60742
omsTargetCostset_2.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1527975_1_60742
omsTargetCostset_2.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527978_1_60742
omsTargetCostset_2.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1527977_1_60742
omsTargetCostset_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527979_1_60742
    }
if(receptionServiceRes!=null){
      omsTargetCostset_2.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1527974_1_60742
    }

    /*7-1-07新增目标预算设置[8374]   */
    Assert.isNull(omsTargetCostset_2.getCycleBudgetAmount(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_2.getCycleBudgetUnit(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-冗余预算单位不能为空",false);
Assert.isNull(omsTargetCostset_2.getBudgetCycleModeTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-预算周期模型编码不能为空",false);
Assert.isNull(omsTargetCostset_2.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-预算是否已设置不能为空",false);
Assert.isNull(omsTargetCostset_2.getEvaObjTargetCycleId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-被评对象目标周期ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getTargetCycleContentId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-关联目标内容ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getTargetCycleContentTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-关联目标内容类型编码不能为空",false);
Assert.isNull(omsTargetCostset_2.getEvaluationTemplateId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-冗余评价模板ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getSubjectLifeCycle(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-主体生命周期不能为空",false);
      string = mOmsTargetCostsetService.addTargetBudgetSet(omsTargetCostset_2)/*vcase invoke 本地 method 方法调用;*/;



//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_4 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_2=new ImplementReceiveFieldInputReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_2.setIsBudgetSeted(receptionServiceRes_2.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1528828_1_60774
    }

    /*M7接收预算是否已设置[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-M7接收预算是否已设置-预算是否已设置不能为空",false);
      receptionServiceRes_4 = nbFinance.implementReceiveFieldInput(receptionServiceReq_2);


      receptionServiceRes_5 = receptionServiceRes_4;
      }
else if((omsTargetCostset != null )){
       //elseif(7-1-07查询目标父周期预算设置（用于判断是否已存在）.出参 值不等于空 )  60775

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_6 = null;
    if(omsTargetCostset !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq_3=new ImplementReceiveFieldInputReqDto();
  if(omsTargetCostset!=null){
      receptionServiceReq_3.setIsBudgetSeted(omsTargetCostset.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1528828_1_60776
        }

    /*M7接收预算是否已设置[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-M7接收预算是否已设置-预算是否已设置不能为空",false);
      receptionServiceRes_6 = nbFinance.implementReceiveFieldInput(receptionServiceReq_3);


      receptionServiceRes_5 = receptionServiceRes_6;
      }
    }
if((reqDto!= null&& reqDto.getMidEvaObjTargetCycleId() != null )) {
        //if(D7执行初始化目标周期预算设置(公共).中期被评对象目标周期ID 值不等于空 )  60778

OmsTargetCostset omsTargetCostset_3 = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq_1=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq_1.setIsArchive("FALSE");//sourceId:1528612_1_60779
queryTargetBudgetSetDetailReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1528613_1_60779
  if(reqDto!=null){
      queryTargetBudgetSetDetailReq_1.setEvaObjTargetCycleId(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528020_1_60779
queryTargetBudgetSetDetailReq_1.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528022_1_60779
queryTargetBudgetSetDetailReq_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528031_1_60779
    }
if(receptionServiceRes!=null){
      queryTargetBudgetSetDetailReq_1.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1528019_1_60779
    }

    /*7-1-07查询目标预算设置（用于判断是否已存在）[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq_1.getEvaObjTargetCycleId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_1.getTargetCycleContentId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_1.getEvaluationTemplateId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_1.getBudgetCycleModeTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_1.getIsArchive(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-是否存档不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_1.getSpaceId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-创建于空间ID不能为空",false);
      omsTargetCostset_3 = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;



if((omsTargetCostset_3 == null )) {
        //if(7-1-07查询目标中期预算设置（用于判断是否已存在）.出参 值等于空 )  60780

String string_2 = null;
    OmsTargetCostset omsTargetCostset_4=new OmsTargetCostset();
  omsTargetCostset_4.setCycleBudgetAmount(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1527972_1_60781
omsTargetCostset_4.setBudgetRate(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1528066_1_60781
omsTargetCostset_4.setIsBudgetSeted("FALSE");//sourceId:1528065_1_60781
omsTargetCostset_4.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1527980_1_60781
if(reqDto!=null){
      omsTargetCostset_4.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1527973_1_60781
omsTargetCostset_4.setEvaObjTargetCycleId(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1527975_1_60781
omsTargetCostset_4.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527978_1_60781
omsTargetCostset_4.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1527977_1_60781
omsTargetCostset_4.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527979_1_60781
    }
if(receptionServiceRes!=null){
      omsTargetCostset_4.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1527974_1_60781
    }

    /*7-1-07新增目标预算设置[8374]   */
    Assert.isNull(omsTargetCostset_4.getCycleBudgetAmount(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_4.getCycleBudgetUnit(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-冗余预算单位不能为空",false);
Assert.isNull(omsTargetCostset_4.getBudgetCycleModeTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-预算周期模型编码不能为空",false);
Assert.isNull(omsTargetCostset_4.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-预算是否已设置不能为空",false);
Assert.isNull(omsTargetCostset_4.getEvaObjTargetCycleId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-被评对象目标周期ID不能为空",false);
Assert.isNull(omsTargetCostset_4.getTargetCycleContentId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-关联目标内容ID不能为空",false);
Assert.isNull(omsTargetCostset_4.getTargetCycleContentTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-关联目标内容类型编码不能为空",false);
Assert.isNull(omsTargetCostset_4.getEvaluationTemplateId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-冗余评价模板ID不能为空",false);
Assert.isNull(omsTargetCostset_4.getSubjectLifeCycle(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-主体生命周期不能为空",false);
      string_2 = mOmsTargetCostsetService.addTargetBudgetSet(omsTargetCostset_4)/*vcase invoke 本地 method 方法调用;*/;



      }
      }
if((reqDto!= null&&  reqDto.getSubCycleList() !=null && reqDto.getSubCycleList().size()>0)) {
        //if(D7执行初始化目标周期预算设置(公共).子周期列表数据集条数 大于 0)  60763

//ModelCode: circulationCollections
        for (String circulationCollectionsRes: reqDto.getSubCycleList()){

OmsTargetCostset omsTargetCostset_5 = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq_2=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq_2.setIsArchive("FALSE");//sourceId:1528612_1_60766
queryTargetBudgetSetDetailReq_2.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1528613_1_60766
if(circulationCollectionsRes!=null){
      queryTargetBudgetSetDetailReq_2.setEvaObjTargetCycleId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1528020_1_60766
    }
  if(reqDto!=null){
      queryTargetBudgetSetDetailReq_2.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528022_1_60766
queryTargetBudgetSetDetailReq_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528031_1_60766
    }
if(receptionServiceRes!=null){
      queryTargetBudgetSetDetailReq_2.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField3());//SimpleFieldAssign//sourceId:1528019_1_60766
    }

    /*7-1-07查询目标预算设置（用于判断是否已存在）[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq_2.getEvaObjTargetCycleId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getTargetCycleContentId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getEvaluationTemplateId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getBudgetCycleModeTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getIsArchive(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-是否存档不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_2.getSpaceId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-创建于空间ID不能为空",false);
      omsTargetCostset_5 = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;



if((omsTargetCostset_5 == null )) {
        //if(7-1-07查询目标子周期预算设置（用于判断是否已存在）.出参 值等于空 )  60767

String string_3 = null;
    OmsTargetCostset omsTargetCostset_6=new OmsTargetCostset();
  omsTargetCostset_6.setCycleBudgetAmount(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1527972_1_60768
omsTargetCostset_6.setBudgetRate(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1528066_1_60768
omsTargetCostset_6.setIsBudgetSeted("FALSE");//sourceId:1528065_1_60768
omsTargetCostset_6.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1527980_1_60768
if(reqDto!=null){
      omsTargetCostset_6.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1527973_1_60768
omsTargetCostset_6.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527978_1_60768
omsTargetCostset_6.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1527977_1_60768
omsTargetCostset_6.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527979_1_60768
    }
if(receptionServiceRes!=null){
      omsTargetCostset_6.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField3());//SimpleFieldAssign//sourceId:1527974_1_60768
    }
if(circulationCollectionsRes!=null){
      omsTargetCostset_6.setEvaObjTargetCycleId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1527975_1_60768
    }

    /*7-1-07新增目标预算设置[8374]   */
    Assert.isNull(omsTargetCostset_6.getCycleBudgetAmount(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_6.getCycleBudgetUnit(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-冗余预算单位不能为空",false);
Assert.isNull(omsTargetCostset_6.getBudgetCycleModeTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-预算周期模型编码不能为空",false);
Assert.isNull(omsTargetCostset_6.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-预算是否已设置不能为空",false);
Assert.isNull(omsTargetCostset_6.getEvaObjTargetCycleId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-被评对象目标周期ID不能为空",false);
Assert.isNull(omsTargetCostset_6.getTargetCycleContentId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-关联目标内容ID不能为空",false);
Assert.isNull(omsTargetCostset_6.getTargetCycleContentTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-关联目标内容类型编码不能为空",false);
Assert.isNull(omsTargetCostset_6.getEvaluationTemplateId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-冗余评价模板ID不能为空",false);
Assert.isNull(omsTargetCostset_6.getSubjectLifeCycle(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-主体生命周期不能为空",false);
      string_3 = mOmsTargetCostsetService.addTargetBudgetSet(omsTargetCostset_6)/*vcase invoke 本地 method 方法调用;*/;



      }
//ModelCode: circulationEnd
        }

      }
      }
else if((reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("SINGLE_CYCLE")||reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("IRREGULAR_CYCLE"))){
       //elseif((D7执行初始化目标周期预算设置(公共).周期模式类型编码 等于 单周期 or D7执行初始化目标周期预算设置(公共).周期模式类型编码 等于 不规则周期))  60782

OmsTargetCostset omsTargetCostset_7 = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq_3=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq_3.setIsArchive("FALSE");//sourceId:1528612_1_60783
queryTargetBudgetSetDetailReq_3.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1528613_1_60783
if(reqDto!=null){
      queryTargetBudgetSetDetailReq_3.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528020_1_60783
queryTargetBudgetSetDetailReq_3.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528022_1_60783
queryTargetBudgetSetDetailReq_3.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528031_1_60783
    }
if(receptionServiceRes!=null){
      queryTargetBudgetSetDetailReq_3.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField3());//SimpleFieldAssign//sourceId:1528019_1_60783
    }

    /*7-1-07查询目标预算设置（用于判断是否已存在）[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq_3.getEvaObjTargetCycleId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_3.getTargetCycleContentId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_3.getEvaluationTemplateId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_3.getBudgetCycleModeTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_3.getIsArchive(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-是否存档不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq_3.getSpaceId(),"D7执行初始化目标周期预算设置(公共)-7-1-07查询目标预算设置（用于判断是否已存在）-创建于空间ID不能为空",false);
      omsTargetCostset_7 = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq_3)/*vcase invoke 本地 method 方法调用;*/;



if((omsTargetCostset_7 == null )) {
        //if(7-1-07查询目标子周期预算设置（用于判断是否已存在）.出参 值等于空 )  60784

String string_4 = null;
    OmsTargetCostset omsTargetCostset_8=new OmsTargetCostset();
  omsTargetCostset_8.setCycleBudgetAmount(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1527972_1_60785
omsTargetCostset_8.setBudgetRate(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1528066_1_60785
omsTargetCostset_8.setIsBudgetSeted("FALSE");//sourceId:1528065_1_60785
omsTargetCostset_8.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1527980_1_60785
if(reqDto!=null){
      omsTargetCostset_8.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1527973_1_60785
omsTargetCostset_8.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1527975_1_60785
omsTargetCostset_8.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527978_1_60785
omsTargetCostset_8.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1527977_1_60785
omsTargetCostset_8.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527979_1_60785
    }
if(receptionServiceRes!=null){
      omsTargetCostset_8.setBudgetCycleModeTypeCode(receptionServiceRes.getCustomField3());//SimpleFieldAssign//sourceId:1527974_1_60785
    }

    /*7-1-07新增目标预算设置[8374]   */
    Assert.isNull(omsTargetCostset_8.getCycleBudgetAmount(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_8.getCycleBudgetUnit(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-冗余预算单位不能为空",false);
Assert.isNull(omsTargetCostset_8.getBudgetCycleModeTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-预算周期模型编码不能为空",false);
Assert.isNull(omsTargetCostset_8.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-预算是否已设置不能为空",false);
Assert.isNull(omsTargetCostset_8.getEvaObjTargetCycleId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-被评对象目标周期ID不能为空",false);
Assert.isNull(omsTargetCostset_8.getTargetCycleContentId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-关联目标内容ID不能为空",false);
Assert.isNull(omsTargetCostset_8.getTargetCycleContentTypeCode(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-关联目标内容类型编码不能为空",false);
Assert.isNull(omsTargetCostset_8.getEvaluationTemplateId(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-冗余评价模板ID不能为空",false);
Assert.isNull(omsTargetCostset_8.getSubjectLifeCycle(),"D7执行初始化目标周期预算设置(公共)-7-1-07新增目标预算设置-主体生命周期不能为空",false);
      string_4 = mOmsTargetCostsetService.addTargetBudgetSet(omsTargetCostset_8)/*vcase invoke 本地 method 方法调用;*/;



//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_7 = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq_4=new ImplementReceiveFieldInputReqDto();
  if(receptionServiceRes_2!=null){
      receptionServiceReq_4.setIsBudgetSeted(receptionServiceRes_2.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1528828_1_60786
    }

    /*M7接收预算是否已设置[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_4.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-M7接收预算是否已设置-预算是否已设置不能为空",false);
      receptionServiceRes_7 = nbFinance.implementReceiveFieldInput(receptionServiceReq_4);


      receptionServiceRes_5 = receptionServiceRes_7;
      }
else if((omsTargetCostset_7 != null )){
       //elseif(7-1-07查询目标子周期预算设置（用于判断是否已存在）.出参 值不等于空 )  60787

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_8 = null;
    if(omsTargetCostset_7 !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq_5=new ImplementReceiveFieldInputReqDto();
  if(omsTargetCostset_7!=null){
      receptionServiceReq_5.setIsBudgetSeted(omsTargetCostset_7.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1528828_1_60788
    }

    /*M7接收预算是否已设置[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_5.getIsBudgetSeted(),"D7执行初始化目标周期预算设置(公共)-M7接收预算是否已设置-预算是否已设置不能为空",false);
      receptionServiceRes_8 = nbFinance.implementReceiveFieldInput(receptionServiceReq_5);


      receptionServiceRes_5 = receptionServiceRes_8;
      }
    }
      }
ImplementInitializeTargetCycleBudgetSetComRespDto retData = new ImplementInitializeTargetCycleBudgetSetComRespDto();
  if(receptionServiceRes_5!=null){
      retData.setIsBudgetSeted(receptionServiceRes_5.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1528830_1
    }




return retData;
  }
/**
   * D7执行计算目标预算占比(公共)[8448]
   * gen by moon at 2/25/2024, 2:51:23 PM
   */
  @Trace(operationName = "D7执行计算目标预算占比(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementCalculateProportionTargetBudgetComRespDto implementCalculateProportionTargetBudgetCom(ImplementCalculateProportionTargetBudgetComReqDto reqDto){


      CalculateMultiplyTwoValuesComRespDto calculateMultiplyTwoValuesComRespDto_1 =null;
//virtualUsage D2执行多条转数据集(用于批量查询redis入参)  61724
     ImplementMutDataToOneDatasComRespDto implementMutDataToOneDatasComRespDto = null;
    ImplementMutDataToOneDatasComReqDto implementMutDataToOneDatasComReqDto=new ImplementMutDataToOneDatasComReqDto();
  if(reqDto!=null){
      implementMutDataToOneDatasComReqDto.setCustomField1(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528196_1_61724
    }

    /*D2执行多条转数据集(用于批量查询redis入参)[5864]   */
    Assert.isNull(implementMutDataToOneDatasComReqDto.getCustomField1(),"D7执行计算目标预算占比(公共)-D2执行多条转数据集(用于批量查询redis入参)-自定义字段1不能为空",false);
      implementMutDataToOneDatasComRespDto = fwCompInterfaceModeClient.implementMutDataToOneDatasCom(implementMutDataToOneDatasComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      Assert.isTrue(implementMutDataToOneDatasComRespDto== null||  implementMutDataToOneDatasComRespDto.getComDatasList() ==null|| CollectionUtil.isEmpty(implementMutDataToOneDatasComRespDto.getComDatasList())|| implementMutDataToOneDatasComRespDto.getComDatasList().size()==0 ,"找不到数据，系统异常",false);


//virtualUsage D2-查询目标预算设置个性准备部分数据列表（入参查redis）  61725
     QueryTargetBudgetSetPersonalPreRefListComRespDto queryTargetBudgetSetPersonalPreRefListComRespDto = null;

    if(implementMutDataToOneDatasComRespDto !=null){
          QueryTargetBudgetSetPersonalPreRefListComReqDto queryTargetBudgetSetPersonalPreRefListComReqDto=new QueryTargetBudgetSetPersonalPreRefListComReqDto();
  queryTargetBudgetSetPersonalPreRefListComReqDto.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1528179_1_61725
if(reqDto!=null){
      queryTargetBudgetSetPersonalPreRefListComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528180_1_61725
queryTargetBudgetSetPersonalPreRefListComReqDto.setRefCustomFieldValue1(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1537576_1_61725
    }
if(implementMutDataToOneDatasComRespDto!=null){
      queryTargetBudgetSetPersonalPreRefListComReqDto.setRefRedisBusinessDataList(implementMutDataToOneDatasComRespDto.getComDatasList());//list-field-assign//sourceId:1528185_1_61725
    }

    /*D2-查询目标预算设置个性准备部分数据列表（入参查redis）[8445]   */
    Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getBusinessDataObject(),"D7执行计算目标预算占比(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-业务数据对象不能为空",false);
Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getDataObjectBatchCode(),"D7执行计算目标预算占比(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-数据对象批次标识不能为空",false);
Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getRefCustomFieldValue1(),"D7执行计算目标预算占比(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-预算周期模型编码不能为空",false);
      queryTargetBudgetSetPersonalPreRefListComRespDto = fwCompFinanceClient.queryTargetBudgetSetPersonalPreRefListCom(queryTargetBudgetSetPersonalPreRefListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
if((queryTargetBudgetSetPersonalPreRefListComRespDto!= null&&  queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList() !=null && queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList().size()>0)) {
        //if(D2-查询目标预算设置个性准备部分数据列表（入参查redis）.出参redis业务数据对象列表数据集条数 大于 0)  61726

     CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto = null;
    if(queryTargetBudgetSetPersonalPreRefListComRespDto !=null){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto=new CalculateSumOfMultipleNumServiceComReqDto();
  if(queryTargetBudgetSetPersonalPreRefListComRespDto!= null&&  queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList() !=null&& !CollectionUtil.isEmpty(queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList())){
      calculateSumOfMultipleNumServiceComReqDto.setSumOfMultipleNumList(//objList-to-objLists
        queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList().stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      if(item!=null){
      elm.setCommPrimaryKey(item.getTargetCycleContentId()!=null?String.valueOf(item.getTargetCycleContentId()):"");//SimpleFieldAssign//sourceId:299651_2_61727
elm.setCalcPara1(item.getCycleBudgetAmount()!=null?Double.valueOf(item.getCycleBudgetAmount()):null);//SimpleFieldAssign//sourceId:299652_2_61727
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1528250_1_61727
    }

    /*D4-计算数据集求和服务(计算redis出参数据求和)[3375] 用于查询redis的 子周期单条、父周期单条预算设置，此处临时方案（原本是查单条，此处适配批量查询）  */

      calculateSumOfMultipleNumServiceComRespDto = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
if((calculateSumOfMultipleNumServiceComRespDto!= null&& calculateSumOfMultipleNumServiceComRespDto.getCalcResult() > 0&&reqDto!= null&& reqDto.getCycleBudgetAmount() >= 0)) {
        //if((D4-计算数据集求和服务(计算redis出参数据求和).计算结果 大于 0 and D7执行计算目标预算占比(公共).周期预算金额 大于等于 0))  61728

     CalculateDivisionOfTwoNumComRespDto calculateDivisionOfTwoNumComRespDto = null;
    if(calculateSumOfMultipleNumServiceComRespDto !=null){
          CalculateDivisionOfTwoNumComReqDto calculateDivisionOfTwoNumComReqDto=new CalculateDivisionOfTwoNumComReqDto();
  calculateDivisionOfTwoNumComReqDto.setDecimalPointRules(Long.valueOf(4));//CUSTOM_CONVENTION//sourceId:1527193_1_61729
calculateDivisionOfTwoNumComReqDto.setDecimalDigitsLastRules("MALING");//sourceId:1527194_1_61729
if(reqDto!=null){
      calculateDivisionOfTwoNumComReqDto.setCalcPara1(reqDto.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1527190_1_61729
    }
if(calculateSumOfMultipleNumServiceComRespDto!=null){
      calculateDivisionOfTwoNumComReqDto.setCalcPara2(calculateSumOfMultipleNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1527191_1_61729
    }

    /*D4-计算两个数相除服务(公共)[4841]   */
    Assert.isNull(calculateDivisionOfTwoNumComReqDto.getCalcPara1(),"D7执行计算目标预算占比(公共)-D4-计算两个数相除服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getCalcPara2(),"D7执行计算目标预算占比(公共)-D4-计算两个数相除服务(公共)-计算入参2不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getDecimalPointRules(),"D7执行计算目标预算占比(公共)-D4-计算两个数相除服务(公共)-小数点规则不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getDecimalDigitsLastRules(),"D7执行计算目标预算占比(公共)-D4-计算两个数相除服务(公共)-小数最后一位规则不能为空",false);
      calculateDivisionOfTwoNumComRespDto = fwCalcCalculationRulesClient.calculateDivisionOfTwoNumCom(calculateDivisionOfTwoNumComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
     CalculateMultiplyTwoValuesComRespDto calculateMultiplyTwoValuesComRespDto = null;
    if(calculateDivisionOfTwoNumComRespDto !=null){
          CalculateMultiplyTwoValuesComReqDto calculateMultiplyTwoValuesComReqDto=new CalculateMultiplyTwoValuesComReqDto();
  calculateMultiplyTwoValuesComReqDto.setComFloatField2(Double.valueOf("100"));//CUSTOM_CONVENTION//sourceId:1551815_1_61730
calculateMultiplyTwoValuesComReqDto.setDecimalPointRules(Long.valueOf(2));//CUSTOM_CONVENTION//sourceId:1551817_1_61730
calculateMultiplyTwoValuesComReqDto.setDecimalDigitsLastRules("ROUNDED");//sourceId:1551818_1_61730
if(calculateDivisionOfTwoNumComRespDto!=null){
      calculateMultiplyTwoValuesComReqDto.setComFloatField1(calculateDivisionOfTwoNumComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1551814_1_61730
    }

    /*D4预算占比=上一步计算结果X100[5443]   */
    Assert.isNull(calculateMultiplyTwoValuesComReqDto.getComFloatField1(),"D7执行计算目标预算占比(公共)-D4预算占比=上一步计算结果X100-通用数值字段1（小数型）不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getComFloatField2(),"D7执行计算目标预算占比(公共)-D4预算占比=上一步计算结果X100-通用数值字段2（小数型）不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getDecimalPointRules(),"D7执行计算目标预算占比(公共)-D4预算占比=上一步计算结果X100-小数点规则不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getDecimalDigitsLastRules(),"D7执行计算目标预算占比(公共)-D4预算占比=上一步计算结果X100-小数最后一位规则不能为空",false);
      calculateMultiplyTwoValuesComRespDto = fwCalcInterfaceModeClient.calculateMultiplyTwoValuesCom(calculateMultiplyTwoValuesComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      calculateMultiplyTwoValuesComRespDto_1 = calculateMultiplyTwoValuesComRespDto;
           }
      }
      }

ImplementCalculateProportionTargetBudgetComRespDto retData = new ImplementCalculateProportionTargetBudgetComRespDto();
  if(calculateMultiplyTwoValuesComRespDto_1!=null){
      retData.setCalcResult(calculateMultiplyTwoValuesComRespDto_1.getCalcResult());//SimpleFieldAssign//sourceId:1551819_1
    }




return retData;
  }
/**
   * D7执行初始化目标内容预算账户及周期预算设置(公共)[8444]
   * gen by moon at 2/19/2024, 12:45:04 PM
   */
  @Trace(operationName = "D7执行初始化目标内容预算账户及周期预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeTargetContentBudgetAccountSetEtcComRespDto implementInitializeTargetContentBudgetAccountSetEtcCom(ImplementInitializeTargetContentBudgetAccountSetEtcComReqDto reqDto){


      ImplementInitializeFinanceAccountComRespDto implementInitializeFinanceAccountComRespDto_1 =null;
ImplementInitializeTargetCycleBudgetSetComRespDto implementInitializeTargetCycleBudgetSetComRespDto_1 =null;
//步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!=null){
      receptionServiceReq.setSubCycleList(reqDto.getSubCycleList());//list-field-assign//sourceId:1528240_1
receptionServiceReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528239_1
receptionServiceReq.setMidEvaObjTargetCycleId(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528237_1
receptionServiceReq.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1528238_1
receptionServiceReq.setParentEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1555067_1
receptionServiceReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528231_1
receptionServiceReq.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528232_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528233_1
receptionServiceReq.setPeriodicModeTypeCode(reqDto.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:1528234_1
receptionServiceReq.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1528254_1
receptionServiceReq.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1528235_1
    }

    /*M7接收字段[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getEvaObjTargetCycleId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-M7接收字段-被评对象目标周期ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaObjTargetCycleCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-M7接收字段-被评对象目标周期标识不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-M7接收字段-关联目标内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-M7接收字段-关联目标内容类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-M7接收字段-评价模板ID不能为空",false);
Assert.isNull(receptionServiceReq.getPeriodicModeTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-M7接收字段-周期模式类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getIsOrgOfficialAccountNom(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-M7接收字段-是否组织正式财务标准不能为空",false);
Assert.isNull(receptionServiceReq.getCycleBudgetUnit(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-M7接收字段-冗余预算单位不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);




//步骤1: D7执行初始化账户(公共) - implementInitializeFinanceAccountCom
     ImplementInitializeFinanceAccountComRespDto implementInitializeFinanceAccountComRespDto = null;
    ImplementInitializeFinanceAccountComReqDto implementInitializeFinanceAccountComReqDto=new ImplementInitializeFinanceAccountComReqDto();
  implementInitializeFinanceAccountComReqDto.setAccountCode(CommonFunctionHelper.getUid());//AUTO_GENERATE//sourceId:1526189_1
implementInitializeFinanceAccountComReqDto.setCertificationStatus("AUTHENTICATED");//sourceId:1526190_1
implementInitializeFinanceAccountComReqDto.setAccountTypeCode("ECOLOGICAL_ACCOUNT");//sourceId:1526191_1
implementInitializeFinanceAccountComReqDto.setIsBudgetAccount("TRUE");//sourceId:1526192_1
implementInitializeFinanceAccountComReqDto.setIsStatisticalAccount("FALSE");//sourceId:1526205_1
implementInitializeFinanceAccountComReqDto.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1526193_1
implementInitializeFinanceAccountComReqDto.setAccountObjectClass("CONTENT_TYPE");//sourceId:1526194_1
implementInitializeFinanceAccountComReqDto.setThemeContentTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:1551797_1
implementInitializeFinanceAccountComReqDto.setDistributionSystemTypeCode("CAPITAL_SYSTEM");//sourceId:1526198_1
implementInitializeFinanceAccountComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1526200_1
implementInitializeFinanceAccountComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1526202_1
implementInitializeFinanceAccountComReqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1526203_1
if(reqDto!=null){
      implementInitializeFinanceAccountComReqDto.setParentAccountContentCode(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1555065_1
      implementInitializeFinanceAccountComReqDto.setAccountObjectId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1526195_1
implementInitializeFinanceAccountComReqDto.setAccountObjectTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1526196_1
implementInitializeFinanceAccountComReqDto.setAccountContentCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1526197_1
implementInitializeFinanceAccountComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1551798_1
implementInitializeFinanceAccountComReqDto.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1526199_1
    }

    /*D7执行初始化账户(公共)[7678]   */
    Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-账户标识不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getCertificationStatus(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-认证状态不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-账户类型不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getIsBudgetAccount(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-是否预算账户不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getIsStatisticalAccount(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-是否统计账户不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getEcologicalAccountTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-生态账户类型编码不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountObjectClass(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-账户关联主体分类类型不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountObjectId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-关联归属主体ID不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountObjectTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-关联归属主体类型编码不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAccountContentCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-关联归属主体标识不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getThemeContentTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-主题内容类型编码不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getThemeContentId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-主题内容ID不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getDistributionSystemTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-发行体系类型编码不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getIsOrgOfficialAccountNom(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getSubjectLifeCycle(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-主体生命周期不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getSpaceId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-创建于空间ID不能为空",false);
Assert.isNull(implementInitializeFinanceAccountComReqDto.getAppId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化账户(公共)-创建于联盟应用ID不能为空",false);
      implementInitializeFinanceAccountComRespDto = implementInitializeFinanceAccountCom(implementInitializeFinanceAccountComReqDto)/*vcase invoke 同服务,同domain*/;


      implementInitializeFinanceAccountComRespDto_1 = implementInitializeFinanceAccountComRespDto;

//步骤2: D7执行初始化目标周期预算设置(公共) - implementInitializeTargetCycleBudgetSetCom
     ImplementInitializeTargetCycleBudgetSetComRespDto implementInitializeTargetCycleBudgetSetComRespDto = null;
    ImplementInitializeTargetCycleBudgetSetComReqDto implementInitializeTargetCycleBudgetSetComReqDto=new ImplementInitializeTargetCycleBudgetSetComReqDto();
  if(reqDto!=null){
      implementInitializeTargetCycleBudgetSetComReqDto.setSubCycleList(reqDto.getSubCycleList());//list-field-assign//sourceId:1528230_1
implementInitializeTargetCycleBudgetSetComReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528225_1
implementInitializeTargetCycleBudgetSetComReqDto.setMidEvaObjTargetCycleId(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528226_1
implementInitializeTargetCycleBudgetSetComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528223_1
implementInitializeTargetCycleBudgetSetComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528224_1
implementInitializeTargetCycleBudgetSetComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528227_1
implementInitializeTargetCycleBudgetSetComReqDto.setPeriodicModeTypeCode(reqDto.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:1528228_1
implementInitializeTargetCycleBudgetSetComReqDto.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1528229_1
    }

    /*D7执行初始化目标周期预算设置(公共)[8447]   */
    Assert.isNull(implementInitializeTargetCycleBudgetSetComReqDto.getEvaObjTargetCycleId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化目标周期预算设置(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleBudgetSetComReqDto.getTargetCycleContentId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化目标周期预算设置(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleBudgetSetComReqDto.getTargetCycleContentTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化目标周期预算设置(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementInitializeTargetCycleBudgetSetComReqDto.getEvaluationTemplateId(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化目标周期预算设置(公共)-评价模板ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleBudgetSetComReqDto.getPeriodicModeTypeCode(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化目标周期预算设置(公共)-周期模式类型编码不能为空",false);
Assert.isNull(implementInitializeTargetCycleBudgetSetComReqDto.getCycleBudgetUnit(),"D7执行初始化目标内容预算账户及周期预算设置(公共)-D7执行初始化目标周期预算设置(公共)-冗余预算单位不能为空",false);
      implementInitializeTargetCycleBudgetSetComRespDto = implementInitializeTargetCycleBudgetSetCom(implementInitializeTargetCycleBudgetSetComReqDto)/*vcase invoke 同服务,同domain*/;


      implementInitializeTargetCycleBudgetSetComRespDto_1 = implementInitializeTargetCycleBudgetSetComRespDto;

ImplementInitializeTargetContentBudgetAccountSetEtcComRespDto retData = new ImplementInitializeTargetContentBudgetAccountSetEtcComRespDto();
  if(implementInitializeFinanceAccountComRespDto_1!=null){
      retData.setAccountId(implementInitializeFinanceAccountComRespDto_1.getAccountId());//SimpleFieldAssign//sourceId:1528256_1
    }
if(implementInitializeTargetCycleBudgetSetComRespDto_1!=null){
      retData.setIsBudgetSeted(implementInitializeTargetCycleBudgetSetComRespDto_1.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1528832_1
    }




return retData;
  }
/**
   * D7查询目标预算设置详情(公共)[8450]
   * gen by moon at 2/27/2024, 9:18:52 PM
   */
  @Trace(operationName = "D7查询目标预算设置详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTargetBudgetSetDetailComRespDto queryTargetBudgetSetDetailCom(QueryTargetBudgetSetDetailComReqDto reqDto){


      OmsTargetCostset omsTargetCostset_1 =null;
//步骤0: 7-1-07查询目标预算设置详情 - queryTargetBudgetSetDetail
     OmsTargetCostset omsTargetCostset = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq=new QueryTargetBudgetSetDetailReq();
  if(reqDto!=null){
      queryTargetBudgetSetDetailReq.setTargetCostSetId(reqDto.getTargetCostSetId());//SimpleFieldAssign//sourceId:1528301_1
queryTargetBudgetSetDetailReq.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1528302_1
queryTargetBudgetSetDetailReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528303_1
queryTargetBudgetSetDetailReq.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1528304_1
queryTargetBudgetSetDetailReq.setIsBudgetSeted(reqDto.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1528348_1
queryTargetBudgetSetDetailReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528305_1
queryTargetBudgetSetDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1528314_1
queryTargetBudgetSetDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1528324_1
queryTargetBudgetSetDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1528325_1
queryTargetBudgetSetDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1528326_1
    }

    /*7-1-07查询目标预算设置详情[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq.getEvaObjTargetCycleId(),"D7查询目标预算设置详情(公共)-7-1-07查询目标预算设置详情-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getSpaceId(),"D7查询目标预算设置详情(公共)-7-1-07查询目标预算设置详情-创建于空间ID不能为空",false);
      omsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq)/*vcase invoke 本地 method 方法调用;*/;


      omsTargetCostset_1 = omsTargetCostset;

QueryTargetBudgetSetDetailComRespDto retData = new QueryTargetBudgetSetDetailComRespDto();
  if(omsTargetCostset_1!=null){
      retData.setTargetCostSetId(omsTargetCostset_1.getTargetCostSetId());//SimpleFieldAssign//sourceId:1528330_1
retData.setCycleBudgetAmount(omsTargetCostset_1.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1528331_1
retData.setCycleBudgetUnit(omsTargetCostset_1.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1528332_1
retData.setIsBudgetSeted(omsTargetCostset_1.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1560700_1
retData.setBudgetCycleModeTypeCode(omsTargetCostset_1.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1528333_1
retData.setEvaObjTargetCycleId(omsTargetCostset_1.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528334_1
retData.setCapitalSourceId(omsTargetCostset_1.getCapitalSourceId());//SimpleFieldAssign//sourceId:1528335_1
retData.setTargetCycleContentTypeCode(omsTargetCostset_1.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528336_1
retData.setTargetCycleContentId(omsTargetCostset_1.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528337_1
    }




return retData;
  }

/**
   * D7执行单内容更新资金来源金额(公共)[8414]
   * gen by moon at 2/24/2024, 7:13:47 PM
   */
  @Trace(operationName = "D7执行单内容更新资金来源金额(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementSingleContentCountFundingSourceAmountComRespDto implementSingleContentCountFundingSourceAmountCom(ImplementSingleContentCountFundingSourceAmountComReqDto reqDto){


      AddTargetBudgetSetComRespDto addTargetBudgetSetComRespDto_1 =null;
//virtualUsage D2-查询目标预算设置个性准备列表(redis)  60794
      QueryTargetBudgetSetPersonalPreListComRespDto queryTargetBudgetSetPersonalPreListComRespDto = null;
    QueryTargetBudgetSetPersonalPreListComReqDto queryTargetBudgetSetPersonalPreListComReqDto=new QueryTargetBudgetSetPersonalPreListComReqDto();
  if(reqDto!=null){
      queryTargetBudgetSetPersonalPreListComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1529350_1_60794
queryTargetBudgetSetPersonalPreListComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1529351_1_60794
    }

    /*D2-查询目标预算设置个性准备列表(redis)[8436]   */
    Assert.isNull(queryTargetBudgetSetPersonalPreListComReqDto.getBusinessDataObject(),"D7执行单内容更新资金来源金额(公共)-D2-查询目标预算设置个性准备列表(redis)-业务数据对象不能为空",false);
Assert.isNull(queryTargetBudgetSetPersonalPreListComReqDto.getDataObjectBatchCode(),"D7执行单内容更新资金来源金额(公共)-D2-查询目标预算设置个性准备列表(redis)-数据对象批次标识不能为空",false);
      queryTargetBudgetSetPersonalPreListComRespDto = fwCompFinanceClient.queryTargetBudgetSetPersonalPreListCom(queryTargetBudgetSetPersonalPreListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((queryTargetBudgetSetPersonalPreListComRespDto!= null&&  queryTargetBudgetSetPersonalPreListComRespDto.getRedisBusinessDataResList() !=null && queryTargetBudgetSetPersonalPreListComRespDto.getRedisBusinessDataResList().size()>0)) {
        //if(D2-查询目标预算设置个性准备列表(redis).出参redis业务数据对象列表数据集条数 大于 0)  60795

//ModelCode: circulationCollections
        for (com.wicket.okrcomponent.integration.dto.RedisBusinessDataResDto circulationCollectionsRes: queryTargetBudgetSetPersonalPreListComRespDto.getRedisBusinessDataResList()){

AddTargetBudgetSetComRespDto addTargetBudgetSetComRespDto = null;
    AddTargetBudgetSetComReqDto addTargetBudgetSetComReqDto=new AddTargetBudgetSetComReqDto();
  if(circulationCollectionsRes!=null){
      // TODO: 2024/2/24  手动代码，勿动
      if(circulationCollectionsRes.getCycleBudgetAmount()!=null){
          addTargetBudgetSetComReqDto.setCycleBudgetAmount(Double.valueOf(circulationCollectionsRes.getCycleBudgetAmount()));//SimpleFieldAssign//sourceId:1529338_1_60803
      }

      // TODO: 2024/2/24  手动代码，勿动
      if(circulationCollectionsRes.getBudgetRate()!=null){
          addTargetBudgetSetComReqDto.setBudgetRate(Double.valueOf(circulationCollectionsRes.getBudgetRate()));//SimpleFieldAssign//sourceId:1529342_1_60803
      }

addTargetBudgetSetComReqDto.setBudgetCycleModeTypeCode(circulationCollectionsRes.getBudgetCycleModeTypeCode()!=null?String.valueOf(circulationCollectionsRes.getBudgetCycleModeTypeCode()):"");//SimpleFieldAssign//sourceId:1529340_1_60803
addTargetBudgetSetComReqDto.setEvaObjTargetCycleId(circulationCollectionsRes.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1529341_1_60803
addTargetBudgetSetComReqDto.setCapitalSourceId(circulationCollectionsRes.getCapitalSourceId());//SimpleFieldAssign//sourceId:1529343_1_60803
addTargetBudgetSetComReqDto.setTargetCycleContentTypeCode(circulationCollectionsRes.getTargetCycleContentTypeCode()!=null?String.valueOf(circulationCollectionsRes.getTargetCycleContentTypeCode()):"");//SimpleFieldAssign//sourceId:1529344_1_60803
addTargetBudgetSetComReqDto.setTargetCycleContentId(circulationCollectionsRes.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1529345_1_60803
    }
if(reqDto!=null){
      addTargetBudgetSetComReqDto.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1529339_1_60803
addTargetBudgetSetComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1529346_1_60803
    }

    /*D7-新增/修改目标预算设置(公共)[8453]   */
    Assert.isNull(addTargetBudgetSetComReqDto.getCycleBudgetAmount(),"D7执行单内容更新资金来源金额(公共)-D7-新增/修改目标预算设置(公共)-周期预算金额不能为空",false);
Assert.isNull(addTargetBudgetSetComReqDto.getCycleBudgetUnit(),"D7执行单内容更新资金来源金额(公共)-D7-新增/修改目标预算设置(公共)-冗余预算单位不能为空",false);
Assert.isNull(addTargetBudgetSetComReqDto.getBudgetCycleModeTypeCode(),"D7执行单内容更新资金来源金额(公共)-D7-新增/修改目标预算设置(公共)-预算周期模型编码不能为空",false);
Assert.isNull(addTargetBudgetSetComReqDto.getEvaObjTargetCycleId(),"D7执行单内容更新资金来源金额(公共)-D7-新增/修改目标预算设置(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(addTargetBudgetSetComReqDto.getTargetCycleContentTypeCode(),"D7执行单内容更新资金来源金额(公共)-D7-新增/修改目标预算设置(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(addTargetBudgetSetComReqDto.getTargetCycleContentId(),"D7执行单内容更新资金来源金额(公共)-D7-新增/修改目标预算设置(公共)-关联目标内容ID不能为空",false);
Assert.isNull(addTargetBudgetSetComReqDto.getEvaluationTemplateId(),"D7执行单内容更新资金来源金额(公共)-D7-新增/修改目标预算设置(公共)-冗余评价模板ID不能为空",false);
      addTargetBudgetSetComRespDto = addTargetBudgetSetCom(addTargetBudgetSetComReqDto)/*vcase invoke 同服务,同domain*/;


      addTargetBudgetSetComRespDto_1 = addTargetBudgetSetComRespDto;
//ModelCode: circulationEnd
        }

      }
ImplementSingleContentCountFundingSourceAmountComRespDto retData = new ImplementSingleContentCountFundingSourceAmountComRespDto();
  if(addTargetBudgetSetComRespDto_1!=null){
      retData.setTargetCostSetId(addTargetBudgetSetComRespDto_1.getTargetCostSetId());//SimpleFieldAssign//sourceId:1531616_1
    }




return retData;
  }
/**
   * D7-新增/修改目标预算设置(公共)[8453]
   * gen by moon at 2/18/2024, 10:07:34 PM
   */
  @Trace(operationName = "D7-新增/修改目标预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddTargetBudgetSetComRespDto addTargetBudgetSetCom(AddTargetBudgetSetComReqDto reqDto){
    reqDto.setIsArchive("FALSE");

      String string_1 =null;
//virtualUsage 7-1-07查询目标预算设置详情  60790
      OmsTargetCostset omsTargetCostset = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq.setIsArchive("FALSE");//sourceId:1529174_1_60790
if(reqDto!=null){
      queryTargetBudgetSetDetailReq.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1529290_1_60790
queryTargetBudgetSetDetailReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1529291_1_60790
queryTargetBudgetSetDetailReq.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1529292_1_60790
queryTargetBudgetSetDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1529294_1_60790
    }

    /*7-1-07查询目标预算设置详情[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq.getBudgetCycleModeTypeCode(),"D7-新增/修改目标预算设置(公共)-7-1-07查询目标预算设置详情-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getEvaObjTargetCycleId(),"D7-新增/修改目标预算设置(公共)-7-1-07查询目标预算设置详情-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getEvaluationTemplateId(),"D7-新增/修改目标预算设置(公共)-7-1-07查询目标预算设置详情-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getIsArchive(),"D7-新增/修改目标预算设置(公共)-7-1-07查询目标预算设置详情-是否存档不能为空",false);
      omsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsTargetCostset == null )) {
        //if(7-1-07查询目标预算设置详情.目标预算设置ID 值等于空 )  60791

String string = null;
    OmsTargetCostset omsTargetCostset_2=new OmsTargetCostset();
  omsTargetCostset_2.setIsBudgetSeted("TRUE");//sourceId:1529086_1_60792
omsTargetCostset_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1529083_1_60792
if(reqDto!=null){
      omsTargetCostset_2.setCycleBudgetAmount(reqDto.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1529075_1_60792
omsTargetCostset_2.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1529076_1_60792
omsTargetCostset_2.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1529077_1_60792
omsTargetCostset_2.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1529078_1_60792
omsTargetCostset_2.setBudgetRate(reqDto.getBudgetRate());//SimpleFieldAssign//sourceId:1529085_1_60792
omsTargetCostset_2.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1529079_1_60792
omsTargetCostset_2.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1529080_1_60792
omsTargetCostset_2.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1529081_1_60792
omsTargetCostset_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1529082_1_60792
    }

    /*7-1-07新增目标预算设置[8374]   */
    Assert.isNull(omsTargetCostset_2.getCycleBudgetAmount(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_2.getCycleBudgetUnit(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-冗余预算单位不能为空",false);
Assert.isNull(omsTargetCostset_2.getBudgetCycleModeTypeCode(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-预算周期模型编码不能为空",false);
Assert.isNull(omsTargetCostset_2.getEvaObjTargetCycleId(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-被评对象目标周期ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getIsBudgetSeted(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-预算是否已设置不能为空",false);
Assert.isNull(omsTargetCostset_2.getTargetCycleContentTypeCode(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-关联目标内容类型编码不能为空",false);
Assert.isNull(omsTargetCostset_2.getTargetCycleContentId(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-关联目标内容ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getEvaluationTemplateId(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-冗余评价模板ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getSubjectLifeCycle(),"D7-新增/修改目标预算设置(公共)-7-1-07新增目标预算设置-主体生命周期不能为空",false);
      string = mOmsTargetCostsetService.addTargetBudgetSet(omsTargetCostset_2)/*vcase invoke 本地 method 方法调用;*/;


      string_1 = string;
      }
else if((omsTargetCostset!= null )){
       //elseif(7-1-07查询目标预算设置详情.目标预算设置ID 值不等于空 )  60815

boolean bOOLEAN ;
    if(omsTargetCostset !=null){
          OmsTargetCostset omsTargetCostset_3=new OmsTargetCostset();
  if(omsTargetCostset!=null){
      omsTargetCostset_3.setTargetCostSetId(omsTargetCostset.getTargetCostSetId());//SimpleFieldAssign//sourceId:1530423_1_60818
    }
if(reqDto!=null){
      omsTargetCostset_3.setCycleBudgetAmount(reqDto.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1530424_1_60818
omsTargetCostset_3.setBudgetRate(reqDto.getBudgetRate());//SimpleFieldAssign//sourceId:1530425_1_60818
    }

    /*7-1-07修改目标预算设置[8383]   */
    Assert.isNull(omsTargetCostset_3.getTargetCostSetId(),"D7-新增/修改目标预算设置(公共)-7-1-07修改目标预算设置-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset_3.getCycleBudgetAmount(),"D7-新增/修改目标预算设置(公共)-7-1-07修改目标预算设置-周期预算金额不能为空",false);
//Assert.isNull(omsTargetCostset_3.getBudgetRate(),"D7-新增/修改目标预算设置(公共)-7-1-07修改目标预算设置-预算金额占比不能为空",false);
      bOOLEAN = mOmsTargetCostsetService.updateTargetBudgetSet(omsTargetCostset_3)/*vcase invoke 本地 method 方法调用;*/;



           }
    }
AddTargetBudgetSetComRespDto retData = new AddTargetBudgetSetComRespDto();
  if(string_1!=null){
      retData.setTargetCostSetId(string_1);//SimpleFieldAssign//sourceId:1529328_1
    }




return retData;
  }
/**
   * D7-执行当前汇报内容财务账户加减费用(公共)[8454]
   * gen by moon at 2/23/2024, 2:01:35 AM
   */
  @Trace(operationName = "D7-执行当前汇报内容财务账户加减费用(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementCurRptContFinAcctPlusMinusExpComRespDto implementCurRptContFinAcctPlusMinusExpCom(ImplementCurRptContFinAcctPlusMinusExpComReqDto reqDto){


      //virtualUsage 7-1-01-查询资金账户详情  60796
      OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1529171_1_60796
queryFinanceAccountDetailComReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1529169_1_60796
queryFinanceAccountDetailComReq.setIsStatisticalAccount(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1529170_1_60796
queryFinanceAccountDetailComReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1529172_1_60796
    }

    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountObjectId(),"D7-执行当前汇报内容财务账户加减费用(公共)-7-1-01-查询资金账户详情-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsBudgetAccount(),"D7-执行当前汇报内容财务账户加减费用(公共)-7-1-01-查询资金账户详情-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsStatisticalAccount(),"D7-执行当前汇报内容财务账户加减费用(公共)-7-1-01-查询资金账户详情-是否统计账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSpaceId(),"D7-执行当前汇报内容财务账户加减费用(公共)-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsAccount== null||  omsAccount.getAccountId() ==null,"找不到数据，系统异常",false);


//virtualUsage D7执行账户资金处理(公共)  60797
      ImplementAccountFundHandleComRespDto implementAccountFundHandleComRespDto = null;
    if(omsAccount !=null){
          ImplementAccountFundHandleComReqDto implementAccountFundHandleComReqDto=new ImplementAccountFundHandleComReqDto();
  if(omsAccount!=null){
      implementAccountFundHandleComReqDto.setAccountId(omsAccount.getAccountId());//SimpleFieldAssign//sourceId:1529142_1_60797
    }
if(reqDto!=null){
      implementAccountFundHandleComReqDto.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1529143_1_60797
implementAccountFundHandleComReqDto.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1529141_1_60797
implementAccountFundHandleComReqDto.setAccountOptType(reqDto.getAccountOptType());//SimpleFieldAssign//sourceId:1529167_1_60797
implementAccountFundHandleComReqDto.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1529144_1_60797
implementAccountFundHandleComReqDto.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1529145_1_60797
implementAccountFundHandleComReqDto.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1529146_1_60797
implementAccountFundHandleComReqDto.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1529147_1_60797
implementAccountFundHandleComReqDto.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1529148_1_60797
implementAccountFundHandleComReqDto.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1529149_1_60797
implementAccountFundHandleComReqDto.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1529150_1_60797
implementAccountFundHandleComReqDto.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1529151_1_60797
implementAccountFundHandleComReqDto.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1529152_1_60797
implementAccountFundHandleComReqDto.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1529153_1_60797
implementAccountFundHandleComReqDto.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1529154_1_60797
implementAccountFundHandleComReqDto.setOppositeOpeningBankName(reqDto.getOppositeOpeningBankName());//SimpleFieldAssign//sourceId:1529155_1_60797
implementAccountFundHandleComReqDto.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1529156_1_60797
implementAccountFundHandleComReqDto.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1529157_1_60797
implementAccountFundHandleComReqDto.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1529158_1_60797
implementAccountFundHandleComReqDto.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1529159_1_60797
implementAccountFundHandleComReqDto.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1529160_1_60797
implementAccountFundHandleComReqDto.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1529161_1_60797
implementAccountFundHandleComReqDto.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1529162_1_60797
implementAccountFundHandleComReqDto.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1529163_1_60797
implementAccountFundHandleComReqDto.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1529164_1_60797
implementAccountFundHandleComReqDto.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1529165_1_60797
implementAccountFundHandleComReqDto.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1529166_1_60797
    }

    /*D7执行账户资金处理(公共)[7687]   */
    Assert.isNull(implementAccountFundHandleComReqDto.getAccountId(),"D7-执行当前汇报内容财务账户加减费用(公共)-D7执行账户资金处理(公共)-账户ID不能为空",false);
Assert.isNull(implementAccountFundHandleComReqDto.getBillAmount(),"D7-执行当前汇报内容财务账户加减费用(公共)-D7执行账户资金处理(公共)-账单金额不能为空",false);
Assert.isNull(implementAccountFundHandleComReqDto.getAccountOptType(),"D7-执行当前汇报内容财务账户加减费用(公共)-D7执行账户资金处理(公共)-账户操作类型不能为空",false);
Assert.isNull(implementAccountFundHandleComReqDto.getIsOriginBill(),"D7-执行当前汇报内容财务账户加减费用(公共)-D7执行账户资金处理(公共)-是否发生方账单不能为空",false);
Assert.isNull(implementAccountFundHandleComReqDto.getIsButtFinance(),"D7-执行当前汇报内容财务账户加减费用(公共)-D7执行账户资金处理(公共)-是否对接财务不能为空",false);
Assert.isNull(implementAccountFundHandleComReqDto.getBillBizStory(),"D7-执行当前汇报内容财务账户加减费用(公共)-D7执行账户资金处理(公共)-流水业务故事信息不能为空",false);
Assert.isNull(implementAccountFundHandleComReqDto.getBillMethod(),"D7-执行当前汇报内容财务账户加减费用(公共)-D7执行账户资金处理(公共)-收支方式不能为空",false);
Assert.isNull(implementAccountFundHandleComReqDto.getBillStatus(),"D7-执行当前汇报内容财务账户加减费用(公共)-D7执行账户资金处理(公共)-账单状态不能为空",false);
      implementAccountFundHandleComRespDto = implementAccountFundHandleCom(implementAccountFundHandleComReqDto)/*vcase invoke 同服务,同domain*/;



           }
ImplementCurRptContFinAcctPlusMinusExpComRespDto retData = new ImplementCurRptContFinAcctPlusMinusExpComRespDto();





return retData;
  }
/**
   * D7执行财务账户推redis(公共)[8456]
   * gen by moon at 2/19/2024, 4:05:34 PM
   */
  @Trace(operationName = "D7执行财务账户推redis(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementFinancialAccountPromotionRedisComRespDto implementFinancialAccountPromotionRedisCom(ImplementFinancialAccountPromotionRedisComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getIsExecuteFinaceHandle() !=null && reqDto.getIsExecuteFinaceHandle().equals("TRUE")&&reqDto!= null&& reqDto.getDataObjectBatchCode() != null &&reqDto!= null&& reqDto.getAccountObjectId() != null &&reqDto!= null&& reqDto.getAccountObjectTypeCode() != null &&reqDto!= null&& reqDto.getAccountContentCode() != null )) {
        //if((D7执行财务账户推redis(公共).是否执行财务处理 等于 是 and D7执行财务账户推redis(公共).数据对象批次标识 值不等于空  and D7执行财务账户推redis(公共).关联归属主体ID 值不等于空  and D7执行财务账户推redis(公共).关联归属主体类型编码 值不等于空  and D7执行财务账户推redis(公共).关联归属主体标识 值不等于空 ))  60806

//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq.setCustomField("0");//CUSTOM_CONVENTION//sourceId:1530263_1_60813
receptionServiceReq.setCustomField1("TRUE");//CUSTOM_CONVENTION//sourceId:1529803_1_60813
receptionServiceReq.setCustomField2("FALSE");//CUSTOM_CONVENTION//sourceId:1529804_1_60813

    /*M7-约定是否[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField(),"D7执行财务账户推redis(公共)-M7-约定是否-自定义字段不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField1(),"D7执行财务账户推redis(公共)-M7-约定是否-自定义字段1不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField2(),"D7执行财务账户推redis(公共)-M7-约定是否-自定义字段2不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);



if((reqDto!= null&&  reqDto.getCreateBudgetOrFundAccount() !=null && reqDto.getCreateBudgetOrFundAccount().equals("ADD_BUDGET_ACCOUNT"))) {
        //if(D7执行财务账户推redis(公共).增预算或实体账户 等于 增预算账户)  60808

OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1530391_1_60816
if(receptionServiceRes!=null){
      queryFinanceAccountDetailComReq.setIsBudgetAccount(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1530389_1_60816
    }
if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1530390_1_60816
queryFinanceAccountDetailComReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1530418_1_60816
    }

    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getIsBudgetAccount(),"D7执行财务账户推redis(公共)-7-1-01-查询资金账户详情-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getAccountObjectId(),"D7执行财务账户推redis(公共)-7-1-01-查询资金账户详情-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getThemeContentId(),"D7执行财务账户推redis(公共)-7-1-01-查询资金账户详情-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSubjectLifeCycle(),"D7执行财务账户推redis(公共)-7-1-01-查询资金账户详情-主体生命周期不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsAccount == null )) {
        //if(7-1-01-查询预算资金账户详情.出参 值等于空 )  60819

AddAccountPersonalPreComRespDto addAccountPersonalPreComRespDto = null;
    AddAccountPersonalPreComReqDto addAccountPersonalPreComReqDto=new AddAccountPersonalPreComReqDto();
  addAccountPersonalPreComReqDto.setBusinessDataObject("INIT_BUDGET_AND_REAL_ACCT");//sourceId:1529645_1_60821
if(reqDto!=null){
      addAccountPersonalPreComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1529646_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue1(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1553983_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue8(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1529654_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue10(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1529656_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue11(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1529657_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue12(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1529658_1_60821
    }
if(receptionServiceRes!=null){
      addAccountPersonalPreComReqDto.setCustomFieldValue2(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529648_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue3(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529649_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue4(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529650_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue5(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529651_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue6(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529652_1_60821
addAccountPersonalPreComReqDto.setCustomFieldValue7(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1529653_1_60821
    }

    /*D2-新增账户个性准备(redis)[8433]   */
    Assert.isNull(addAccountPersonalPreComReqDto.getBusinessDataObject(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-业务数据对象不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue2(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-总金额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue3(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-账户余额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue4(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-可用金额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue5(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-冻结金额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue6(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-累计结算金额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue7(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-是否预算账户不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue8(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-是否统计账户不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue10(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-关联归属主体类型编码不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue11(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-关联归属主体ID不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto.getCustomFieldValue12(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-关联归属主体标识不能为空",false);
      addAccountPersonalPreComRespDto = fwCompFinanceClient.addAccountPersonalPreCom(addAccountPersonalPreComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



      }
      }
if((reqDto!= null&&  reqDto.getCreateBudgetOrFundAccount() !=null && reqDto.getCreateBudgetOrFundAccount().equals("ADD_PHYSICAL_ACCOUNT"))) {
        //if(D7执行财务账户推redis(公共).增预算或实体账户 等于 增实体账户)  60810

OmsAccount omsAccount_2 = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq_1=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1530391_1_60817
if(receptionServiceRes!=null){
      queryFinanceAccountDetailComReq_1.setIsBudgetAccount(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1530389_1_60817
    }
if(reqDto!=null){
      queryFinanceAccountDetailComReq_1.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1530390_1_60817
queryFinanceAccountDetailComReq_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1530418_1_60817
    }

    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq_1.getIsBudgetAccount(),"D7执行财务账户推redis(公共)-7-1-01-查询资金账户详情-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_1.getAccountObjectId(),"D7执行财务账户推redis(公共)-7-1-01-查询资金账户详情-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_1.getThemeContentId(),"D7执行财务账户推redis(公共)-7-1-01-查询资金账户详情-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_1.getSubjectLifeCycle(),"D7执行财务账户推redis(公共)-7-1-01-查询资金账户详情-主体生命周期不能为空",false);
      omsAccount_2 = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq_1)/*vcase invoke 本地 method 方法调用;*/;



if((omsAccount_2 == null )) {
        //if(7-1-01-查询实体资金账户详情.出参 值等于空 )  60820

AddAccountPersonalPreComRespDto addAccountPersonalPreComRespDto_1 = null;
    AddAccountPersonalPreComReqDto addAccountPersonalPreComReqDto_1=new AddAccountPersonalPreComReqDto();
  addAccountPersonalPreComReqDto_1.setBusinessDataObject("INIT_BUDGET_AND_REAL_ACCT");//sourceId:1529645_1_60822
if(reqDto!=null){
      addAccountPersonalPreComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1529646_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue1(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1553983_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue8(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1529654_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue9(reqDto.getIsIncomingAccount());//SimpleFieldAssign//sourceId:1529655_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue10(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1529656_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue11(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1529657_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue12(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1529658_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue13(reqDto.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1553984_1_60822
    }
if(receptionServiceRes!=null){
      addAccountPersonalPreComReqDto_1.setCustomFieldValue2(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529648_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue3(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529649_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue4(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529650_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue5(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529651_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue6(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1529652_1_60822
addAccountPersonalPreComReqDto_1.setCustomFieldValue7(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1529653_1_60822
    }

    /*D2-新增账户个性准备(redis)[8433]   */
    Assert.isNull(addAccountPersonalPreComReqDto_1.getBusinessDataObject(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-业务数据对象不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue2(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-总金额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue3(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-账户余额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue4(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-可用金额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue5(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-冻结金额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue6(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-累计结算金额不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue7(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-是否预算账户不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue8(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-是否统计账户不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue10(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-关联归属主体类型编码不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue11(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-关联归属主体ID不能为空",false);
Assert.isNull(addAccountPersonalPreComReqDto_1.getCustomFieldValue12(),"D7执行财务账户推redis(公共)-D2-新增账户个性准备(redis)-关联归属主体标识不能为空",false);
      addAccountPersonalPreComRespDto_1 = fwCompFinanceClient.addAccountPersonalPreCom(addAccountPersonalPreComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



      }
      }
      }
ImplementFinancialAccountPromotionRedisComRespDto retData = new ImplementFinancialAccountPromotionRedisComRespDto();





return retData;
  }
/**
   * D7批量查询目标周期及来源预算设置(公共)[8457]
   * gen by moon at 2/5/2024, 7:15:48 PM
   */
  @Trace(operationName = "D7批量查询目标周期及来源预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public BatchQueryTargetCycleAndSourceBudgetSetComRespDto batchQueryTargetCycleAndSourceBudgetSetCom(BatchQueryTargetCycleAndSourceBudgetSetComReqDto reqDto){


      List<OmsTargetCostset> listOmsTargetCostset_1 =new ArrayList<>();
List<OmsAccountCapitalSource> listOmsAccountCapitalSource_1 =new ArrayList<>();
if((reqDto!= null&&  reqDto.getTargetBudgetSetList() !=null && reqDto.getTargetBudgetSetList().size()>0)) {
        //if(D7批量查询目标周期及来源预算设置(公共).目标预算设置列表数据集条数 大于 0)  60799

List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    BatchQueryTargetBudgetSetReq batchQueryTargetBudgetSetReq=new BatchQueryTargetBudgetSetReq();
  batchQueryTargetBudgetSetReq.setIsArchive("FALSE");//sourceId:1529770_1_60800
if(reqDto!=null){
      batchQueryTargetBudgetSetReq.setTargetBudgetSetList(reqDto.getTargetBudgetSetList());//list-field-assign//sourceId:1529639_1_60800
batchQueryTargetBudgetSetReq.setIsBudgetSeted(reqDto.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1529769_1_60800
batchQueryTargetBudgetSetReq.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1532477_1_60800
batchQueryTargetBudgetSetReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1529640_1_60800
batchQueryTargetBudgetSetReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1529641_1_60800
    }

    /*7-1-07批量查询目标预算设置[8398]   */
    Assert.isNull(batchQueryTargetBudgetSetReq.getTargetCycleContentId(),"D7批量查询目标周期及来源预算设置(公共)-7-1-07批量查询目标预算设置-关联目标内容ID不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq.getIsArchive(),"D7批量查询目标周期及来源预算设置(公共)-7-1-07批量查询目标预算设置-是否存档不能为空",false);
Assert.isNull(batchQueryTargetBudgetSetReq.getEvaluationTemplateId(),"D7批量查询目标周期及来源预算设置(公共)-7-1-07批量查询目标预算设置-冗余评价模板ID不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.batchQueryTargetBudgetSet(batchQueryTargetBudgetSetReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsTargetCostset_1 = listOmsTargetCostset;
List<OmsAccountCapitalSource> listOmsAccountCapitalSource =new ArrayList<>();
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          BatchQueryAccountCapitalSourceReq batchQueryAccountCapitalSourceReq=new BatchQueryAccountCapitalSourceReq();
  batchQueryAccountCapitalSourceReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1529786_1_60801
if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      batchQueryAccountCapitalSourceReq.setAccountCapitalSourceList(listOmsTargetCostset.stream().map(item->item.getCapitalSourceId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1529784_1_60801
    }

    /*7-1-05批量查询财务资金来源[7667]   */
    Assert.isNull(batchQueryAccountCapitalSourceReq.getSpaceId(),"D7批量查询目标周期及来源预算设置(公共)-7-1-05批量查询财务资金来源-创建于空间ID不能为空",false);
      listOmsAccountCapitalSource = mOmsAccountCapitalSourceService.batchQueryAccountCapitalSource(batchQueryAccountCapitalSourceReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsAccountCapitalSource_1 = listOmsAccountCapitalSource;
           }
      }
BatchQueryTargetCycleAndSourceBudgetSetComRespDto retData = new BatchQueryTargetCycleAndSourceBudgetSetComRespDto();
  //数据集融合  MoreListToOneSource
        if(listOmsTargetCostset_1!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset_1) && !CollectionUtil.isEmpty(listOmsTargetCostset_1) ){
          for (OmsTargetCostset omsTargetCostset : listOmsTargetCostset_1) {
              TargetBudgetSetDto retElm = new TargetBudgetSetDto();
             retElm.setTargetCostSetId(omsTargetCostset.getTargetCostSetId());//SimpleFieldAssign//sourceId:299886_2
retElm.setCycleBudgetAmount(omsTargetCostset.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:299887_2
retElm.setCycleBudgetUnit(omsTargetCostset.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:299888_2
retElm.setBudgetRate(omsTargetCostset.getBudgetRate());//SimpleFieldAssign//sourceId:299889_2
retElm.setCapitalSourceId(omsTargetCostset.getCapitalSourceId());//SimpleFieldAssign//sourceId:299890_2
retElm.setEvaObjTargetCycleId(omsTargetCostset.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:299891_2
              retData.getTargetBudgetSetList().add(retElm);
               if(listOmsAccountCapitalSource_1!= null&& !CollectionUtil.isEmpty(listOmsAccountCapitalSource_1)){
          for (OmsAccountCapitalSource omsAccountCapitalSource : listOmsAccountCapitalSource_1) {
                if (omsAccountCapitalSource.getCapitalSourceId().equals(omsTargetCostset.getCapitalSourceId())) {
                 retElm.setCapitalSourceName(omsAccountCapitalSource.getCapitalSourceName());//SimpleFieldAssign//sourceId:299892_2
                }
            }
          }

          }
        }//sourceId:1529807_1




return retData;
  }
/**
   * D7-新增资金账户(公共)[8459]
   * gen by moon at 2/24/2024, 1:59:32 AM
   */
  @Trace(operationName = "D7-新增资金账户(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddFinanceAccountComRespDto addFinanceAccountCom(AddFinanceAccountComReqDto reqDto){
    reqDto.setSubjectLifeCycle("CURRENTLY_VALID");
reqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID
reqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID

      String string_1 =null;
//virtualUsage 7-1-01-查询资金账户详情  60823
      OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  if(reqDto!=null){
      queryFinanceAccountDetailComReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1530724_1_60823
queryFinanceAccountDetailComReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1530713_1_60823
queryFinanceAccountDetailComReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1530725_1_60823
    }

    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getIsBudgetAccount(),"D7-新增资金账户(公共)-7-1-01-查询资金账户详情-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getAccountObjectId(),"D7-新增资金账户(公共)-7-1-01-查询资金账户详情-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getThemeContentId(),"D7-新增资金账户(公共)-7-1-01-查询资金账户详情-主题内容ID不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsAccount == null )) {
        //if(7-1-01-查询资金账户详情.出参 值等于空 )  60824

String string = null;
    OmsAccount omsAccount_2=new OmsAccount();
  omsAccount_2.setAccountCode(CommonFunctionHelper.getUid());//AUTO_GENERATE//sourceId:1530399_1_60825
omsAccount_2.setCertificationStatus("AUTHENTICATED");//sourceId:1530402_1_60825
omsAccount_2.setAccountTypeCode("ECOLOGICAL_ACCOUNT");//sourceId:1530403_1_60825
omsAccount_2.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1530405_1_60825
omsAccount_2.setAccountObjectClass("CONTENT_TYPE");//sourceId:1530406_1_60825
omsAccount_2.setDistributionSystemTypeCode("CAPITAL_SYSTEM");//sourceId:1530410_1_60825
omsAccount_2.setThemeContentTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:1531476_1_60825
omsAccount_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1530412_1_60825
omsAccount_2.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1530413_1_60825
omsAccount_2.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1530414_1_60825
if(reqDto!=null){
      omsAccount_2.setAccountCardNumber(reqDto.getAccountCardNumber());//SimpleFieldAssign//sourceId:1530400_1_60825
omsAccount_2.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1530404_1_60825
omsAccount_2.setIsStatisticalAccount(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1530417_1_60825
omsAccount_2.setIsIncomingAccount(reqDto.getIsIncomingAccount());//SimpleFieldAssign//sourceId:1531475_1_60825
omsAccount_2.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1530407_1_60825
omsAccount_2.setAccountObjectTypeCode(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1530408_1_60825
omsAccount_2.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1530409_1_60825
omsAccount_2.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1530401_1_60825
omsAccount_2.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1530411_1_60825
omsAccount_2.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1531477_1_60825
omsAccount_2.setRelSubBudgetAccountCode(reqDto.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1531478_1_60825
    }

    /*7-1-01-新增资金账户[7679]   */
    Assert.isNull(omsAccount_2.getAccountCode(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-账户标识不能为空",false);
Assert.isNull(omsAccount_2.getCertificationStatus(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-认证状态不能为空",false);
Assert.isNull(omsAccount_2.getAccountTypeCode(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-账户类型不能为空",false);
Assert.isNull(omsAccount_2.getIsBudgetAccount(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-是否预算账户不能为空",false);
Assert.isNull(omsAccount_2.getIsStatisticalAccount(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-是否统计账户不能为空",false);
Assert.isNull(omsAccount_2.getEcologicalAccountTypeCode(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-生态账户类型编码不能为空",false);
Assert.isNull(omsAccount_2.getAccountObjectClass(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-账户关联主体分类类型不能为空",false);
Assert.isNull(omsAccount_2.getAccountObjectId(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-关联归属主体ID不能为空",false);
Assert.isNull(omsAccount_2.getAccountObjectTypeCode(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-关联归属主体类型编码不能为空",false);
Assert.isNull(omsAccount_2.getAccountContentCode(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-关联归属主体标识不能为空",false);
Assert.isNull(omsAccount_2.getDistributionSystemTypeCode(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-发行体系类型编码不能为空",false);
Assert.isNull(omsAccount_2.getIsOrgOfficialAccountNom(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-是否组织正式财务标准不能为空",false);
Assert.isNull(omsAccount_2.getThemeContentTypeCode(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-主题内容类型编码不能为空",false);
Assert.isNull(omsAccount_2.getThemeContentId(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-主题内容ID不能为空",false);
Assert.isNull(omsAccount_2.getSubjectLifeCycle(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-主体生命周期不能为空",false);
Assert.isNull(omsAccount_2.getSpaceId(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-创建于空间ID不能为空",false);
Assert.isNull(omsAccount_2.getAppId(),"D7-新增资金账户(公共)-7-1-01-新增资金账户-创建于联盟应用ID不能为空",false);
      string = mOmsAccountService.addFinanceAccount(omsAccount_2)/*vcase invoke 本地 method 方法调用;*/;


      string_1 = string;
      }
AddFinanceAccountComRespDto retData = new AddFinanceAccountComRespDto();
  if(string_1!=null){
      retData.setAccountId(string_1);//SimpleFieldAssign//sourceId:1531160_1
    }




return retData;
  }
/**
   * D7执行初始化财务预算及实体单账户(公共)[8416]
   * gen by moon at 2/19/2024, 4:05:22 PM
   */
  @Trace(operationName = "D7执行初始化财务预算及实体单账户(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeFinancialBudgetPhysicalAccountsComRespDto implementInitializeFinancialBudgetPhysicalAccountsCom(ImplementInitializeFinancialBudgetPhysicalAccountsComReqDto reqDto){


//virtualUsage D2-查询账户个性准备列表(redis)  60827
      QueryAccountPersonalPreListComRespDto queryAccountPersonalPreListComRespDto = null;
    QueryAccountPersonalPreListComReqDto queryAccountPersonalPreListComReqDto=new QueryAccountPersonalPreListComReqDto();
  if(reqDto!=null){
      queryAccountPersonalPreListComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:1530274_1_60827
queryAccountPersonalPreListComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1530275_1_60827
    }

    /*D2-查询账户个性准备列表(redis)[8434]   */
    Assert.isNull(queryAccountPersonalPreListComReqDto.getBusinessDataObject(),"D7执行初始化财务预算及实体单账户(公共)-D2-查询账户个性准备列表(redis)-业务数据对象不能为空",false);
Assert.isNull(queryAccountPersonalPreListComReqDto.getDataObjectBatchCode(),"D7执行初始化财务预算及实体单账户(公共)-D2-查询账户个性准备列表(redis)-数据对象批次标识不能为空",false);
      queryAccountPersonalPreListComRespDto = fwCompFinanceClient.queryAccountPersonalPreListCom(queryAccountPersonalPreListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((queryAccountPersonalPreListComRespDto!= null&&  queryAccountPersonalPreListComRespDto.getRedisBusinessDataResList() !=null && queryAccountPersonalPreListComRespDto.getRedisBusinessDataResList().size()>0)) {
        //if(D2-查询账户个性准备列表(redis).出参redis业务数据对象列表数据集条数 大于 0)  60828

//ModelCode: circulationCollections
        for (com.wicket.okrcomponent.integration.dto.RedisBusinessDataResDto circulationCollectionsRes: queryAccountPersonalPreListComRespDto.getRedisBusinessDataResList()){

AddFinanceAccountComRespDto addFinanceAccountComRespDto = null;
    AddFinanceAccountComReqDto addFinanceAccountComReqDto=new AddFinanceAccountComReqDto();
  if(circulationCollectionsRes!=null){
addFinanceAccountComReqDto.setIsBudgetAccount(circulationCollectionsRes.getIsBudgetAccount()!=null?String.valueOf(circulationCollectionsRes.getIsBudgetAccount()):"");//SimpleFieldAssign//sourceId:1531279_1_60830
addFinanceAccountComReqDto.setIsStatisticalAccount(circulationCollectionsRes.getIsStatisticalAccount()!=null?String.valueOf(circulationCollectionsRes.getIsStatisticalAccount()):"");//SimpleFieldAssign//sourceId:1531280_1_60830
addFinanceAccountComReqDto.setIsIncomingAccount(circulationCollectionsRes.getIsIncomingAccount()!=null?String.valueOf(circulationCollectionsRes.getIsIncomingAccount()):"");//SimpleFieldAssign//sourceId:1531482_1_60830
addFinanceAccountComReqDto.setAccountObjectTypeCode(circulationCollectionsRes.getAccountObjectTypeCode()!=null?String.valueOf(circulationCollectionsRes.getAccountObjectTypeCode()):"");//SimpleFieldAssign//sourceId:1531282_1_60830
addFinanceAccountComReqDto.setAccountObjectId(circulationCollectionsRes.getAccountObjectId());//SimpleFieldAssign//sourceId:1531281_1_60830
addFinanceAccountComReqDto.setAccountContentCode(circulationCollectionsRes.getAccountContentCode());//SimpleFieldAssign//sourceId:1531283_1_60830
addFinanceAccountComReqDto.setParentAccountContentCode(circulationCollectionsRes.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1531277_1_60830
addFinanceAccountComReqDto.setRelSubBudgetAccountCode(circulationCollectionsRes.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1531484_1_60830
    }
if(reqDto!=null){
      addFinanceAccountComReqDto.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1531284_1_60830
addFinanceAccountComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1531483_1_60830
    }

    /*D7-新增资金账户(公共)[8459]   */
    Assert.isNull(addFinanceAccountComReqDto.getIsBudgetAccount(),"D7执行初始化财务预算及实体单账户(公共)-D7-新增资金账户(公共)-是否预算账户不能为空",false);
Assert.isNull(addFinanceAccountComReqDto.getIsStatisticalAccount(),"D7执行初始化财务预算及实体单账户(公共)-D7-新增资金账户(公共)-是否统计账户不能为空",false);
Assert.isNull(addFinanceAccountComReqDto.getIsOrgOfficialAccountNom(),"D7执行初始化财务预算及实体单账户(公共)-D7-新增资金账户(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(addFinanceAccountComReqDto.getAccountObjectTypeCode(),"D7执行初始化财务预算及实体单账户(公共)-D7-新增资金账户(公共)-关联归属主体类型编码不能为空",false);
Assert.isNull(addFinanceAccountComReqDto.getAccountObjectId(),"D7执行初始化财务预算及实体单账户(公共)-D7-新增资金账户(公共)-关联归属主体ID不能为空",false);
Assert.isNull(addFinanceAccountComReqDto.getAccountContentCode(),"D7执行初始化财务预算及实体单账户(公共)-D7-新增资金账户(公共)-关联归属主体标识不能为空",false);
Assert.isNull(addFinanceAccountComReqDto.getThemeContentId(),"D7执行初始化财务预算及实体单账户(公共)-D7-新增资金账户(公共)-主题内容ID不能为空",false);
      addFinanceAccountComRespDto = addFinanceAccountCom(addFinanceAccountComReqDto)/*vcase invoke 同服务,同domain*/;



//ModelCode: circulationEnd
        }

      }
ImplementInitializeFinancialBudgetPhysicalAccountsComRespDto retData = new ImplementInitializeFinancialBudgetPhysicalAccountsComRespDto();





return retData;
  }
/**
   * D7查询减预算资金来源列表(公共)[8461]
   * gen by moon at 2/5/2024, 9:15:31 PM
   */
  @Trace(operationName = "D7查询减预算资金来源列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QuerySubBudgetSourceListComRespDto querySubBudgetSourceListCom(QuerySubBudgetSourceListComReqDto reqDto){


      List<OmsAccountCapitalSource> listOmsAccountCapitalSource_1 =new ArrayList<>();
//步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!=null){
      receptionServiceReq.setAddOrSubOptType(reqDto.getAddOrSubOptType());//SimpleFieldAssign//sourceId:1533585_1
receptionServiceReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1531419_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1531418_1
    }

    /*M7接收字段[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getTargetCycleContentId(),"D7查询减预算资金来源列表(公共)-M7接收字段-关联目标内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D7查询减预算资金来源列表(公共)-M7接收字段-评价模板ID不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);




//步骤1: 7-1-07查询目标预算设置列表 - queryTargetBudgetSetList
     List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    QueryTargetBudgetSetListReq queryTargetBudgetSetListReq=new QueryTargetBudgetSetListReq();
  queryTargetBudgetSetListReq.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1533253_1
queryTargetBudgetSetListReq.setIsArchive("FALSE");//sourceId:1533255_1
if(reqDto!=null){
      queryTargetBudgetSetListReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1533254_1
queryTargetBudgetSetListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1533256_1
    }

    /*7-1-07查询当前内容资金来源预算设置列表[8375]   */
    Assert.isNull(queryTargetBudgetSetListReq.getTargetCycleContentId(),"D7查询减预算资金来源列表(公共)-7-1-07查询当前内容资金来源预算设置列表-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getEvaluationTemplateId(),"D7查询减预算资金来源列表(公共)-7-1-07查询当前内容资金来源预算设置列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getBudgetCycleModeTypeCode(),"D7查询减预算资金来源列表(公共)-7-1-07查询当前内容资金来源预算设置列表-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getIsArchive(),"D7查询减预算资金来源列表(公共)-7-1-07查询当前内容资金来源预算设置列表-是否存档不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetList(queryTargetBudgetSetListReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤2: D2执行多字段数据集记录去重(公共) - implementManyFieldsDataSetDuplicateRemovalCom
     ImplementManyFieldsDataSetDuplicateRemovalComRespDto implementManyFieldsDataSetDuplicateRemovalComRespDto = null;
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          ImplementManyFieldsDataSetDuplicateRemovalComReqDto implementManyFieldsDataSetDuplicateRemovalComReqDto=new ImplementManyFieldsDataSetDuplicateRemovalComReqDto();
  if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      implementManyFieldsDataSetDuplicateRemovalComReqDto.setDataSetDuplicateRemovalList(//objList-to-objLists
        listOmsTargetCostset.stream().map(item -> {
      DataSetDuplicateRemovalDto elm = new DataSetDuplicateRemovalDto();
      elm.setCommPrimaryKey(item.getCapitalSourceId());//SimpleFieldAssign//sourceId:300260_2
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1531416_1
    }

    /*D2资金来源数据集去重(公共)[7323]   */

      implementManyFieldsDataSetDuplicateRemovalComRespDto = fwCompInterfaceModeClient.implementManyFieldsDataSetDuplicateRemovalCom(implementManyFieldsDataSetDuplicateRemovalComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

//步骤3: 7-1-05批量查询财务资金来源 - batchQueryAccountCapitalSource
     List<OmsAccountCapitalSource> listOmsAccountCapitalSource =new ArrayList<>();
    if(implementManyFieldsDataSetDuplicateRemovalComRespDto !=null){
          BatchQueryAccountCapitalSourceReq batchQueryAccountCapitalSourceReq=new BatchQueryAccountCapitalSourceReq();
  batchQueryAccountCapitalSourceReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1531299_1
batchQueryAccountCapitalSourceReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1531298_1
if(implementManyFieldsDataSetDuplicateRemovalComRespDto!= null&&  implementManyFieldsDataSetDuplicateRemovalComRespDto.getDataSetDuplicateRemovalList() !=null&& !CollectionUtil.isEmpty(implementManyFieldsDataSetDuplicateRemovalComRespDto.getDataSetDuplicateRemovalList())){
      batchQueryAccountCapitalSourceReq.setAccountCapitalSourceList(implementManyFieldsDataSetDuplicateRemovalComRespDto.getDataSetDuplicateRemovalList().stream().map(item->item.getCommPrimaryKey())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1531296_1
    }

    /*7-1-05批量查询财务资金来源[7667]   */
    Assert.isNull(batchQueryAccountCapitalSourceReq.getSubjectLifeCycle(),"D7查询减预算资金来源列表(公共)-7-1-05批量查询财务资金来源-主体生命周期不能为空",false);
Assert.isNull(batchQueryAccountCapitalSourceReq.getSpaceId(),"D7查询减预算资金来源列表(公共)-7-1-05批量查询财务资金来源-创建于空间ID不能为空",false);
      listOmsAccountCapitalSource = mOmsAccountCapitalSourceService.batchQueryAccountCapitalSource(batchQueryAccountCapitalSourceReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsAccountCapitalSource_1 = listOmsAccountCapitalSource;
           }

QuerySubBudgetSourceListComRespDto retData = new QuerySubBudgetSourceListComRespDto();
  retData.setAccountCapitalSourceList(listOmsAccountCapitalSource_1.stream().map(item -> BeanUtil.toBean(item, AccountCapitalSourceDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1532700_1




return retData;
  }
/**
   * D7-执行初始化目标财务账户及预算设置(公共)[8463]
   * gen by moon at 2/18/2024, 10:07:57 PM
   */
  @Trace(operationName = "D7-执行初始化目标财务账户及预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeTargetFinAndBudgetSetComRespDto implementInitializeTargetFinAndBudgetSetCom(ImplementInitializeTargetFinAndBudgetSetComReqDto reqDto){


//步骤0: D7执行单内容更新资金来源金额(公共) - implementSingleContentCountFundingSourceAmountCom
     ImplementSingleContentCountFundingSourceAmountComRespDto implementSingleContentCountFundingSourceAmountComRespDto = null;
    ImplementSingleContentCountFundingSourceAmountComReqDto implementSingleContentCountFundingSourceAmountComReqDto=new ImplementSingleContentCountFundingSourceAmountComReqDto();
  implementSingleContentCountFundingSourceAmountComReqDto.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1531603_1
  if(reqDto!=null){
implementSingleContentCountFundingSourceAmountComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1531604_1
implementSingleContentCountFundingSourceAmountComReqDto.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1531605_1
implementSingleContentCountFundingSourceAmountComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1531606_1
    }

    /*D7执行单内容更新资金来源金额(公共)[8414]   */
    Assert.isNull(implementSingleContentCountFundingSourceAmountComReqDto.getBusinessDataObject(),"D7-执行初始化目标财务账户及预算设置(公共)-D7执行单内容更新资金来源金额(公共)-业务数据对象不能为空",false);
Assert.isNull(implementSingleContentCountFundingSourceAmountComReqDto.getDataObjectBatchCode(),"D7-执行初始化目标财务账户及预算设置(公共)-D7执行单内容更新资金来源金额(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementSingleContentCountFundingSourceAmountComReqDto.getCycleBudgetUnit(),"D7-执行初始化目标财务账户及预算设置(公共)-D7执行单内容更新资金来源金额(公共)-冗余预算单位不能为空",false);
Assert.isNull(implementSingleContentCountFundingSourceAmountComReqDto.getEvaluationTemplateId(),"D7-执行初始化目标财务账户及预算设置(公共)-D7执行单内容更新资金来源金额(公共)-评价模板ID不能为空",false);
      implementSingleContentCountFundingSourceAmountComRespDto = implementSingleContentCountFundingSourceAmountCom(implementSingleContentCountFundingSourceAmountComReqDto)/*vcase invoke 同服务,同domain*/;




//步骤1: D7执行初始化财务预算及实体单账户(公共) - implementInitializeFinancialBudgetPhysicalAccountsCom
     ImplementInitializeFinancialBudgetPhysicalAccountsComRespDto implementInitializeFinancialBudgetPhysicalAccountsComRespDto = null;
    ImplementInitializeFinancialBudgetPhysicalAccountsComReqDto implementInitializeFinancialBudgetPhysicalAccountsComReqDto=new ImplementInitializeFinancialBudgetPhysicalAccountsComReqDto();
  implementInitializeFinancialBudgetPhysicalAccountsComReqDto.setBusinessDataObject("INIT_BUDGET_AND_REAL_ACCT");//sourceId:1531607_1
  if(reqDto!=null){
implementInitializeFinancialBudgetPhysicalAccountsComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1531608_1
implementInitializeFinancialBudgetPhysicalAccountsComReqDto.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1531609_1
implementInitializeFinancialBudgetPhysicalAccountsComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1531610_1
    }

    /*D7执行初始化财务预算及实体单账户(公共)[8416]   */
    Assert.isNull(implementInitializeFinancialBudgetPhysicalAccountsComReqDto.getBusinessDataObject(),"D7-执行初始化目标财务账户及预算设置(公共)-D7执行初始化财务预算及实体单账户(公共)-业务数据对象不能为空",false);
Assert.isNull(implementInitializeFinancialBudgetPhysicalAccountsComReqDto.getDataObjectBatchCode(),"D7-执行初始化目标财务账户及预算设置(公共)-D7执行初始化财务预算及实体单账户(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementInitializeFinancialBudgetPhysicalAccountsComReqDto.getIsOrgOfficialAccountNom(),"D7-执行初始化目标财务账户及预算设置(公共)-D7执行初始化财务预算及实体单账户(公共)-是否组织正式财务标准不能为空",false);
Assert.isNull(implementInitializeFinancialBudgetPhysicalAccountsComReqDto.getThemeContentId(),"D7-执行初始化目标财务账户及预算设置(公共)-D7执行初始化财务预算及实体单账户(公共)-主题内容ID不能为空",false);
      implementInitializeFinancialBudgetPhysicalAccountsComRespDto = implementInitializeFinancialBudgetPhysicalAccountsCom(implementInitializeFinancialBudgetPhysicalAccountsComReqDto)/*vcase invoke 同服务,同domain*/;




ImplementInitializeTargetFinAndBudgetSetComRespDto retData = new ImplementInitializeTargetFinAndBudgetSetComRespDto();





return retData;
  }
/**
   * D7查询目标周期预算设置资金来源列表(公共)[8473]
   * gen by moon at 2/27/2024, 10:48:57 PM
   */
  @Trace(operationName = "D7查询目标周期预算设置资金来源列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTargetCycleBudgetSetSourceListComRespDto queryTargetCycleBudgetSetSourceListCom(QueryTargetCycleBudgetSetSourceListComReqDto reqDto){


      List<OmsTargetCostset> listOmsTargetCostset_1 =new ArrayList<>();
List<OmsAccountCapitalSource> listOmsAccountCapitalSource_1 =new ArrayList<>();
//步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!=null){
      receptionServiceReq.setAccountCapitalSourceList(reqDto.getTargetBudgetSourceList());//list-field-assign//sourceId:1560862_1
      receptionServiceReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1533749_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1533745_1
    }

    /*M7接收字段[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getEvaObjTargetCycleId(),"D7查询目标周期预算设置资金来源列表(公共)-M7接收字段-被评对象目标周期ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D7查询目标周期预算设置资金来源列表(公共)-M7接收字段-评价模板ID不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);




//步骤1: 7-1-07查询目标预算设置By资金来源列表 - queryTargetBudgetSourceList
     List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    QueryTargetBudgetSourceListReq queryTargetBudgetSourceListReq=new QueryTargetBudgetSourceListReq();
  queryTargetBudgetSourceListReq.setIsArchive("FALSE");//sourceId:1560853_1
if(reqDto!=null){
      queryTargetBudgetSourceListReq.setTargetBudgetSourceList(reqDto.getTargetBudgetSourceList());//list-field-assign//sourceId:1560850_1
queryTargetBudgetSourceListReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1560851_1
queryTargetBudgetSourceListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1560852_1
    }

    /*7-1-07查询目标预算设置By资金来源列表[8531]   */
    Assert.isNull(queryTargetBudgetSourceListReq.getEvaObjTargetCycleId(),"D7查询目标周期预算设置资金来源列表(公共)-7-1-07查询目标预算设置By资金来源列表-被评对象目标周期ID不能为空",false);
Assert.isNull(queryTargetBudgetSourceListReq.getEvaluationTemplateId(),"D7查询目标周期预算设置资金来源列表(公共)-7-1-07查询目标预算设置By资金来源列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetBudgetSourceListReq.getIsArchive(),"D7查询目标周期预算设置资金来源列表(公共)-7-1-07查询目标预算设置By资金来源列表-是否存档不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSourceList(queryTargetBudgetSourceListReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsTargetCostset_1 = listOmsTargetCostset;

//步骤2: 7-1-05批量查询财务资金来源 - batchQueryAccountCapitalSource
     List<OmsAccountCapitalSource> listOmsAccountCapitalSource =new ArrayList<>();
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          BatchQueryAccountCapitalSourceReq batchQueryAccountCapitalSourceReq=new BatchQueryAccountCapitalSourceReq();
  batchQueryAccountCapitalSourceReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1533837_1
if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      batchQueryAccountCapitalSourceReq.setAccountCapitalSourceList(listOmsTargetCostset.stream().map(item->item.getCapitalSourceId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1533835_1
    }

    /*7-1-05批量查询财务资金来源[7667]   */
    Assert.isNull(batchQueryAccountCapitalSourceReq.getSpaceId(),"D7查询目标周期预算设置资金来源列表(公共)-7-1-05批量查询财务资金来源-创建于空间ID不能为空",false);
      listOmsAccountCapitalSource = mOmsAccountCapitalSourceService.batchQueryAccountCapitalSource(batchQueryAccountCapitalSourceReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsAccountCapitalSource_1 = listOmsAccountCapitalSource;
           }

QueryTargetCycleBudgetSetSourceListComRespDto retData = new QueryTargetCycleBudgetSetSourceListComRespDto();
  //数据集融合  MoreListToOneSource
        if(listOmsTargetCostset_1!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset_1) && !CollectionUtil.isEmpty(listOmsTargetCostset_1) ){
          for (OmsTargetCostset omsTargetCostset : listOmsTargetCostset_1) {
              TargetBudgetSourceDto retElm = new TargetBudgetSourceDto();
             retElm.setTargetCostSetId(omsTargetCostset.getTargetCostSetId());//SimpleFieldAssign//sourceId:305844_2
retElm.setCapitalSourceId(omsTargetCostset.getCapitalSourceId());//SimpleFieldAssign//sourceId:305845_2
retElm.setCycleBudgetUnit(omsTargetCostset.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:305846_2
              retData.getTargetBudgetSourceList().add(retElm);
               if(listOmsAccountCapitalSource_1!= null&& !CollectionUtil.isEmpty(listOmsAccountCapitalSource_1)){
          for (OmsAccountCapitalSource omsAccountCapitalSource : listOmsAccountCapitalSource_1) {
                if (omsAccountCapitalSource.getCapitalSourceId().equals(omsTargetCostset.getCapitalSourceId())) {
                 retElm.setCapitalSourceName(omsAccountCapitalSource.getCapitalSourceName());//SimpleFieldAssign//sourceId:305847_2
                }
            }
          }

          }
        }//sourceId:1560855_1




return retData;
  }
/**
   * D7执行单内容统计目标资金来源预算推redis(公共)[8415]
   * gen by moon at 2/25/2024, 2:50:52 PM
   */
  @Trace(operationName = "D7执行单内容统计目标资金来源预算推redis(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementSingleContentCountTargetFundingSourceBudgetSetRedisComRespDto implementSingleContentCountTargetFundingSourceBudgetSetRedisCom(ImplementSingleContentCountTargetFundingSourceBudgetSetRedisComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getIsExecuteFinaceHandle() !=null && reqDto.getIsExecuteFinaceHandle().equals("TRUE")&&reqDto!= null&&  reqDto.getIsStatisticalAccount() !=null && reqDto.getIsStatisticalAccount().equals("TRUE"))&&(reqDto!= null&&  reqDto.getAddFinAccountTypeCode() !=null && reqDto.getAddFinAccountTypeCode().equals("ADD_BUDGET_ACCOUNT")||reqDto!= null&&  reqDto.getAddFinAccountTypeCode() !=null && reqDto.getAddFinAccountTypeCode().equals("ADD_BOTH"))) {
        //if((D7执行单内容统计目标资金来源预算推redis(公共).是否执行财务处理 等于 是 and D7执行单内容统计目标资金来源预算推redis(公共).是否统计账户 等于 是) and (D7执行单内容统计目标资金来源预算推redis(公共).增财务账户类型编码 等于 增预算账户 or D7执行单内容统计目标资金来源预算推redis(公共).增财务账户类型编码 等于 增预算账户与实体账户))  60581

if((reqDto!= null&& reqDto.getFatherEvaObjTargetCycleId() != null &&reqDto!= null&&  reqDto.getParentCycleList() !=null && reqDto.getParentCycleList().size()>0&&reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("FATHER_SON_CYCLE"))) {
        //if((D7执行单内容统计资金来源金额(公共).父周期被评对象目标周期ID 值不等于空  and D7执行单内容统计资金来源金额(公共).父周期列表数据集条数 大于 0 and D7执行单内容统计资金来源金额(公共).周期模式类型编码 等于 父子周期))  60621

ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto implementCalculateTotalBudgetValueSubordinatesRecordComRespDto = null;
    ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto implementCalculateTotalBudgetValueSubordinatesRecordComReqDto=new ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto();
  implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setBudgetCycleModeTypeCode("PARENT_CYCLE");//sourceId:1527961_1_60627
if(reqDto!=null){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1521347_1_60627
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527962_1_60627
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527964_1_60627
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.setTargetBudgetSetList(reqDto.getParentCycleList());//list-field-assign//sourceId:1521348_1_60627
    }

    /*D7执行统计下级父周期总预算值并记录redis(公共)[8426]   */
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getBudgetCycleModeTypeCode(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行统计下级父周期总预算值并记录redis(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getEvaluationTemplateId(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行统计下级父周期总预算值并记录redis(公共)-评价模板ID不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto.getDataObjectBatchCode(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行统计下级父周期总预算值并记录redis(公共)-数据对象批次标识不能为空",false);
      implementCalculateTotalBudgetValueSubordinatesRecordComRespDto = implementCalculateTotalBudgetValueSubordinatesRecordCom(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto)/*vcase invoke 同服务,同domain*/;



if((implementCalculateTotalBudgetValueSubordinatesRecordComRespDto!= null&& implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount() != null )) {
        //if(D7执行统计下级父周期总预算值并记录redis(公共).周期预算金额 值不等于空 )  61713

AddTargetBudgetSetPersonalPreComRespDto addTargetBudgetSetPersonalPreComRespDto = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto !=null){
          AddTargetBudgetSetPersonalPreComReqDto addTargetBudgetSetPersonalPreComReqDto=new AddTargetBudgetSetPersonalPreComReqDto();
  addTargetBudgetSetPersonalPreComReqDto.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1528279_1_61714
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue3("PARENT_CYCLE");//CUSTOM_CONVENTION//sourceId:1528283_1_61714
if(reqDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528280_1_61714
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue4(reqDto.getFatherEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528300_1_61714
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue6(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528286_1_61714
addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue7(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528287_1_61714
    }
if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto!=null){
      addTargetBudgetSetPersonalPreComReqDto.setCustomFieldValue1(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount()!=null?String.valueOf(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto.getCycleBudgetAmount()):"");//SimpleFieldAssign//sourceId:1528281_1_61714
    }

    /*D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）[8435]   */
    Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getBusinessDataObject(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-业务数据对象不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue1(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-周期预算金额不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue3(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-自定义字段值3不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue4(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-被评对象目标周期ID不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue6(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-关联目标内容类型编码不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto.getCustomFieldValue7(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标父周期预算设置到redis（用于批量循环增目标父周期预算设置）-关联目标内容ID不能为空",false);
      addTargetBudgetSetPersonalPreComRespDto = fwCompFinanceClient.addTargetBudgetSetPersonalPreCom(addTargetBudgetSetPersonalPreComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
           }
      }
if((reqDto!= null&& reqDto.getMidEvaObjTargetCycleId() != null &&reqDto!= null&&  reqDto.getMidTermList() !=null && reqDto.getMidTermList().size()>0&&reqDto!= null&&  reqDto.getPeriodicModeTypeCode() !=null && reqDto.getPeriodicModeTypeCode().equals("FATHER_SON_CYCLE"))){
        //if((D7执行单内容统计资金来源金额(公共).中期被评对象目标周期ID 值不等于空  and D7执行单内容统计资金来源金额(公共).中期列表数据集条数 大于 0 and D7执行单内容统计资金来源金额(公共).周期模式类型编码 等于 父子周期))  60622

ImplementCalculateTotalBudgetValueSubordinatesRecordComRespDto implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 = null;
    ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1=new ImplementCalculateTotalBudgetValueSubordinatesRecordComReqDto();
  implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setBudgetCycleModeTypeCode("METAPHASE");//sourceId:1527968_1_60628
if(reqDto!=null){
      implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1521354_1_60628
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527971_1_60628
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1527969_1_60628
implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.setTargetBudgetSetList(reqDto.getMidTermList());//list-field-assign//sourceId:1521355_1_60628
    }

    /*D7执行统计下级中期总预算值并记录redis(公共)[8426]   */
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getBudgetCycleModeTypeCode(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行统计下级中期总预算值并记录redis(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getDataObjectBatchCode(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行统计下级中期总预算值并记录redis(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1.getEvaluationTemplateId(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行统计下级中期总预算值并记录redis(公共)-评价模板ID不能为空",false);
      implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 = implementCalculateTotalBudgetValueSubordinatesRecordCom(implementCalculateTotalBudgetValueSubordinatesRecordComReqDto_1)/*vcase invoke 同服务,同domain*/;



if((implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2!= null&& implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount() != null )) {
        //if(D7执行统计下级中期总预算值并记录redis(公共).周期预算金额 值不等于空 )  61715

AddTargetBudgetSetPersonalPreComRespDto addTargetBudgetSetPersonalPreComRespDto_1 = null;
    if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2 !=null){
          AddTargetBudgetSetPersonalPreComReqDto addTargetBudgetSetPersonalPreComReqDto_1=new AddTargetBudgetSetPersonalPreComReqDto();
  addTargetBudgetSetPersonalPreComReqDto_1.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1528289_1_61716
addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue3("METAPHASE");//CUSTOM_CONVENTION//sourceId:1528293_1_61716
if(reqDto!=null){
      addTargetBudgetSetPersonalPreComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528290_1_61716
addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue4(reqDto.getMidEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1528294_1_61716
addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue6(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528296_1_61716
addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue7(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1528297_1_61716
    }
if(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2!=null){
      addTargetBudgetSetPersonalPreComReqDto_1.setCustomFieldValue1(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount()!=null?String.valueOf(implementCalculateTotalBudgetValueSubordinatesRecordComRespDto_2.getCycleBudgetAmount()):"");//SimpleFieldAssign//sourceId:1528291_1_61716
    }

    /*D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）[8435]   */
    Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getBusinessDataObject(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-业务数据对象不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue1(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-周期预算金额不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue3(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-自定义字段值3不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue4(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-被评对象目标周期ID不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue6(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-关联目标内容类型编码不能为空",false);
Assert.isNull(addTargetBudgetSetPersonalPreComReqDto_1.getCustomFieldValue7(),"D7执行单内容统计目标资金来源预算推redis(公共)-D2-新增目标中期预算设置到redis（用于批量循环增目标中期预算设置）-关联目标内容ID不能为空",false);
      addTargetBudgetSetPersonalPreComRespDto_1 = fwCompFinanceClient.addTargetBudgetSetPersonalPreCom(addTargetBudgetSetPersonalPreComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
           }
    }
if((reqDto!= null&&  reqDto.getSuperiorEvaObjTargetCycleList() !=null && reqDto.getSuperiorEvaObjTargetCycleList().size()>0&&reqDto!= null&&  reqDto.getSubCycleList() !=null && reqDto.getSubCycleList().size()>0)){
        //if((D7执行单内容统计资金来源金额(公共).上级目标内容被评对象目标周期列表数据集条数 大于 0 and D7执行单内容统计资金来源金额(公共).子周期列表数据集条数 大于 0))  60623

ImplementRecurrentCountFilterSubCyclesComRespDto implementRecurrentCountFilterSubCyclesComRespDto = null;
    ImplementRecurrentCountFilterSubCyclesComReqDto implementRecurrentCountFilterSubCyclesComReqDto=new ImplementRecurrentCountFilterSubCyclesComReqDto();
  implementRecurrentCountFilterSubCyclesComReqDto.setBudgetCycleModeTypeCode("SUB_CYCLE");//sourceId:1528062_1_60629
if(reqDto!=null){
      implementRecurrentCountFilterSubCyclesComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1521412_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setIsLastStaticAccount(reqDto.getIsLastStaticAccount());//SimpleFieldAssign//sourceId:1521413_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setFatherEvaObjTargetCycleId(reqDto.getFatherEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1527214_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1527959_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1527960_1_60629
implementRecurrentCountFilterSubCyclesComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1528063_1_60629
    }
if(reqDto!= null&&  reqDto.getSuperiorEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getSuperiorEvaObjTargetCycleList())){
      implementRecurrentCountFilterSubCyclesComReqDto.setSuperiorEvaObjTargetCycleList(reqDto.getSuperiorEvaObjTargetCycleList().stream().map(item -> BeanUtil.toBean(item, SuperiorEvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1521410_1_60629
    }
if(reqDto!= null&&  reqDto.getSubCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getSubCycleList())){
      implementRecurrentCountFilterSubCyclesComReqDto.setSubCycleList(reqDto.getSubCycleList().stream().map(item -> BeanUtil.toBean(item, SubCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1521411_1_60629
    }

    /*D7执行循环统计过滤下级子周期(公共)[8427]   */
    Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getEvaluationTemplateId(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行循环统计过滤下级子周期(公共)-评价模板ID不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getIsLastStaticAccount(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行循环统计过滤下级子周期(公共)-是否末级统计账户不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getFatherEvaObjTargetCycleId(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行循环统计过滤下级子周期(公共)-父周期被评对象目标周期ID不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getDataObjectBatchCode(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行循环统计过滤下级子周期(公共)-数据对象批次标识不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getBudgetCycleModeTypeCode(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行循环统计过滤下级子周期(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getTargetCycleContentId(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行循环统计过滤下级子周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementRecurrentCountFilterSubCyclesComReqDto.getTargetCycleContentTypeCode(),"D7执行单内容统计目标资金来源预算推redis(公共)-D7执行循环统计过滤下级子周期(公共)-关联目标内容类型编码不能为空",false);
      implementRecurrentCountFilterSubCyclesComRespDto = implementRecurrentCountFilterSubCyclesCom(implementRecurrentCountFilterSubCyclesComReqDto)/*vcase invoke 同服务,同domain*/;



    }

      }
ImplementSingleContentCountTargetFundingSourceBudgetSetRedisComRespDto retData = new ImplementSingleContentCountTargetFundingSourceBudgetSetRedisComRespDto();





return retData;
  }
/**
   * D7执行初始化来源预算设置[8480]
   * gen by moon at 2/27/2024, 10:49:24 PM
   */
  @Trace(operationName = "D7执行初始化来源预算设置")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeSourceBudgetSetRespDto implementInitializeSourceBudgetSet(ImplementInitializeSourceBudgetSetReqDto reqDto){


      if((reqDto!= null&&  reqDto.getAccountCapitalSourceList() !=null && reqDto.getAccountCapitalSourceList().size()>0)) {
        //if(D7执行初始化来源预算设置.财务资金来源列表数据集条数 大于 0)  61005

//ModelCode: circulationCollections
        for (String circulationCollectionsRes: reqDto.getAccountCapitalSourceList()){

if((reqDto!= null&&  reqDto.getEvaObjTargetCycleList() !=null && reqDto.getEvaObjTargetCycleList().size()>0)) {
        //if(D7执行初始化来源预算设置.被评对象目标周期列表数据集条数 大于 0)  61010

//ModelCode: circulationCollections
        for (String circulationCollectionsRes_2: reqDto.getEvaObjTargetCycleList()){

ImplementInitializeSourceBudgetSetComRespDto implementInitializeSourceBudgetSetComRespDto = null;
    ImplementInitializeSourceBudgetSetComReqDto implementInitializeSourceBudgetSetComReqDto=new ImplementInitializeSourceBudgetSetComReqDto();
  implementInitializeSourceBudgetSetComReqDto.setCycleBudgetAmount(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1537819_1_61014
implementInitializeSourceBudgetSetComReqDto.setBudgetRate(Double.valueOf("0"));//CUSTOM_CONVENTION//sourceId:1537823_1_61014
implementInitializeSourceBudgetSetComReqDto.setBudgetCycleModeTypeCode("CAPITAL_SOURCE");//sourceId:1537821_1_61014
implementInitializeSourceBudgetSetComReqDto.setIsBudgetSeted("FALSE");//sourceId:1537824_1_61014
implementInitializeSourceBudgetSetComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1537829_1_61014
if(circulationCollectionsRes_2!=null){
      implementInitializeSourceBudgetSetComReqDto.setEvaObjTargetCycleId(circulationCollectionsRes_2);//SimpleFieldAssign//sourceId:1537822_1_61014
    }
if(reqDto!=null){
      implementInitializeSourceBudgetSetComReqDto.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1537820_1_61014
implementInitializeSourceBudgetSetComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1537826_1_61014
implementInitializeSourceBudgetSetComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1537827_1_61014
implementInitializeSourceBudgetSetComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1537828_1_61014
    }
if(circulationCollectionsRes!=null){
      implementInitializeSourceBudgetSetComReqDto.setCapitalSourceId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1537825_1_61014
    }

    /*D7执行初始化来源预算设置(公共)[8484]   */
    Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getEvaObjTargetCycleId(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getCycleBudgetUnit(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-冗余预算单位不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getCapitalSourceId(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-资金来源ID不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getCycleBudgetAmount(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-周期预算金额不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getBudgetCycleModeTypeCode(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-预算周期模型编码不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getIsBudgetSeted(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-预算是否已设置不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getTargetCycleContentTypeCode(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getTargetCycleContentId(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getEvaluationTemplateId(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementInitializeSourceBudgetSetComReqDto.getSubjectLifeCycle(),"D7执行初始化来源预算设置-D7执行初始化来源预算设置(公共)-主体生命周期不能为空",false);
      implementInitializeSourceBudgetSetComRespDto = implementInitializeSourceBudgetSetCom(implementInitializeSourceBudgetSetComReqDto)/*vcase invoke 同服务,同domain*/;



//ModelCode: circulationEnd
        }

      }
//ModelCode: circulationEnd
        }

      }
ImplementInitializeSourceBudgetSetRespDto retData = new ImplementInitializeSourceBudgetSetRespDto();





return retData;
  }
/**
   * D7执行初始化来源预算设置(公共)[8484]
   * gen by moon at 2/27/2024, 10:49:20 PM
   */
  @Trace(operationName = "D7执行初始化来源预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeSourceBudgetSetComRespDto implementInitializeSourceBudgetSetCom(ImplementInitializeSourceBudgetSetComReqDto reqDto){


      //virtualUsage 7-1-07查询目标预算设置详情  61015
      OmsTargetCostset omsTargetCostset = null;
    QueryTargetBudgetSetDetailReq queryTargetBudgetSetDetailReq=new QueryTargetBudgetSetDetailReq();
  queryTargetBudgetSetDetailReq.setIsArchive("FALSE");//sourceId:1537750_1_61015
queryTargetBudgetSetDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1537751_1_61015
if(reqDto!=null){
      queryTargetBudgetSetDetailReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1537737_1_61015
queryTargetBudgetSetDetailReq.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1537738_1_61015
queryTargetBudgetSetDetailReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1537739_1_61015
queryTargetBudgetSetDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1537748_1_61015
    }

    /*7-1-07查询目标预算设置详情[8376]   */
    Assert.isNull(queryTargetBudgetSetDetailReq.getIsArchive(),"D7执行初始化来源预算设置(公共)-7-1-07查询目标预算设置详情-是否存档不能为空",false);
Assert.isNull(queryTargetBudgetSetDetailReq.getSpaceId(),"D7执行初始化来源预算设置(公共)-7-1-07查询目标预算设置详情-创建于空间ID不能为空",false);
      omsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetDetail(queryTargetBudgetSetDetailReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsTargetCostset == null )) {
        //if(7-1-07查询目标预算设置详情.出参 值等于空 )  61017

String string = null;
    OmsTargetCostset omsTargetCostset_2=new OmsTargetCostset();
  if(reqDto!=null){
      omsTargetCostset_2.setCycleBudgetAmount(reqDto.getCycleBudgetAmount());//SimpleFieldAssign//sourceId:1537723_1_61018
omsTargetCostset_2.setCycleBudgetUnit(reqDto.getCycleBudgetUnit());//SimpleFieldAssign//sourceId:1537724_1_61018
omsTargetCostset_2.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1537725_1_61018
omsTargetCostset_2.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1537726_1_61018
omsTargetCostset_2.setBudgetRate(reqDto.getBudgetRate());//SimpleFieldAssign//sourceId:1537733_1_61018
omsTargetCostset_2.setIsBudgetSeted(reqDto.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1537734_1_61018
omsTargetCostset_2.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1537727_1_61018
omsTargetCostset_2.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1537728_1_61018
omsTargetCostset_2.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1537729_1_61018
omsTargetCostset_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1537730_1_61018
omsTargetCostset_2.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1537731_1_61018
    }

    /*7-1-07新增目标预算设置[8374]   */
    Assert.isNull(omsTargetCostset_2.getCycleBudgetAmount(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-周期预算金额不能为空",false);
Assert.isNull(omsTargetCostset_2.getCycleBudgetUnit(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-冗余预算单位不能为空",false);
Assert.isNull(omsTargetCostset_2.getBudgetCycleModeTypeCode(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-预算周期模型编码不能为空",false);
Assert.isNull(omsTargetCostset_2.getEvaObjTargetCycleId(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-被评对象目标周期ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getIsBudgetSeted(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-预算是否已设置不能为空",false);
Assert.isNull(omsTargetCostset_2.getTargetCycleContentTypeCode(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-关联目标内容类型编码不能为空",false);
Assert.isNull(omsTargetCostset_2.getTargetCycleContentId(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-关联目标内容ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getEvaluationTemplateId(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-冗余评价模板ID不能为空",false);
Assert.isNull(omsTargetCostset_2.getSubjectLifeCycle(),"D7执行初始化来源预算设置(公共)-7-1-07新增目标预算设置-主体生命周期不能为空",false);
      string = mOmsTargetCostsetService.addTargetBudgetSet(omsTargetCostset_2)/*vcase invoke 本地 method 方法调用;*/;



      }
ImplementInitializeSourceBudgetSetComRespDto retData = new ImplementInitializeSourceBudgetSetComRespDto();





return retData;
  }
/**
   * D7-查询预算账户及资金到账账户详情(公共)[8479]
   * gen by moon at 2/23/2024, 2:01:44 AM
   */
  @Trace(operationName = "D7-查询预算账户及资金到账账户详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryBudgetAccountAndFundAccountDetailComRespDto queryBudgetAccountAndFundAccountDetailCom(QueryBudgetAccountAndFundAccountDetailComReqDto reqDto){


      OmsAccount omsAccount_1 =null;
OmsAccount omsAccount_3 =null;
//virtualUsage 7-1-01-查询资金账户详情  60990
      OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq.setAccountStatus("NORMAL");//sourceId:1536658_1_60990
queryFinanceAccountDetailComReq.setAccountTypeCode("ECOLOGICAL_ACCOUNT");//sourceId:1536661_1_60990
queryFinanceAccountDetailComReq.setIsBudgetAccount("TRUE");//sourceId:1536662_1_60990
queryFinanceAccountDetailComReq.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1536663_1_60990
queryFinanceAccountDetailComReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1536666_1_60990
if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1536664_1_60990
queryFinanceAccountDetailComReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1536665_1_60990
    }

    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountObjectId(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金账户详情-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getThemeContentId(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金账户详情-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getAccountStatus(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金账户详情-账户状态不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getAccountTypeCode(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金账户详情-账户类型不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsBudgetAccount(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金账户详情-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getEcologicalAccountTypeCode(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金账户详情-生态账户类型编码不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSubjectLifeCycle(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金账户详情-主体生命周期不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;


      omsAccount_1 = omsAccount;
if((omsAccount!= null&& omsAccount.getRelSubBudgetAccountCode() != null )) {
        //if(7-1-01-查询资金账户详情.关联扣减预算账户ID 值不等于空 )  60991

OmsAccount omsAccount_2 = null;
    if(omsAccount !=null){
          QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq_1=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1536715_1_60992
if(omsAccount!=null){
      queryFinanceAccountDetailComReq_1.setAccountId(omsAccount.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1536713_1_60992
    }
if(reqDto!=null){
      queryFinanceAccountDetailComReq_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1536714_1_60992
    }

    /*7-1-01-查询资金扣减账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq_1.getAccountId(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金扣减账户详情-账户ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_1.getThemeContentId(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金扣减账户详情-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq_1.getSubjectLifeCycle(),"D7-查询预算账户及资金到账账户详情(公共)-7-1-01-查询资金扣减账户详情-主体生命周期不能为空",false);
      omsAccount_2 = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq_1)/*vcase invoke 本地 method 方法调用;*/;


      omsAccount_3 = omsAccount_2;
           }
      }
QueryBudgetAccountAndFundAccountDetailComRespDto retData = new QueryBudgetAccountAndFundAccountDetailComRespDto();
  if(omsAccount_1!=null){
      retData.setAccountId(omsAccount_1.getAccountId());//SimpleFieldAssign//sourceId:1536733_1
retData.setAccountCode(omsAccount_1.getAccountCode());//SimpleFieldAssign//sourceId:1536734_1
retData.setIsBudgetAccount(omsAccount_1.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1536735_1
retData.setIsStatisticalAccount(omsAccount_1.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1536736_1
retData.setRelSubBudgetAccountCode(omsAccount_1.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1536737_1
    }
if(omsAccount_3!=null){
      retData.setFinanceReceiptsAccountCode(omsAccount_3.getAccountCode());//SimpleFieldAssign//sourceId:1536738_1
    }




return retData;
  }

/**
   * D7-根据账户类型统计下级账户并更新当前账户(公共)[8438]
   * gen by moon at 3/7/2024, 3:55:53 AM
   */
  @Trace(operationName = "D7-根据账户类型统计下级账户并更新当前账户(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementAnaAcctTypeCountSubAcctAndUpdateCurAcctComRespDto implementAnaAcctTypeCountSubAcctAndUpdateCurAcctCom(ImplementAnaAcctTypeCountSubAcctAndUpdateCurAcctComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getIsBudgetAccount() !=null && reqDto.getIsBudgetAccount().equals("TRUE"))) {
        //if(D7-根据账户类型统计下级账户并更新当前账户(公共).是否预算账户 等于 是)  60691

ImplementCountSubAcctAndUpdateCurAcctComRespDto implementCountSubAcctAndUpdateCurAcctComRespDto = null;
    ImplementCountSubAcctAndUpdateCurAcctComReqDto implementCountSubAcctAndUpdateCurAcctComReqDto=new ImplementCountSubAcctAndUpdateCurAcctComReqDto();
  if(reqDto!=null){
      implementCountSubAcctAndUpdateCurAcctComReqDto.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1525249_1_60693
      implementCountSubAcctAndUpdateCurAcctComReqDto.setAccountContentCode(reqDto.getCurAccountCode());
implementCountSubAcctAndUpdateCurAcctComReqDto.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1525250_1_60693
implementCountSubAcctAndUpdateCurAcctComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1525251_1_60693
implementCountSubAcctAndUpdateCurAcctComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528039_1_60693
    }

    /*D7-执行统计下级账户更新当前账户并推Redis(公共)[8437]   */
    Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto.getAccountId(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-账户ID不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto.getIsBudgetAccount(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-是否预算账户不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto.getEvaluationTemplateId(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-评价模板ID不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto.getDataObjectBatchCode(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-数据对象批次标识不能为空",false);
      implementCountSubAcctAndUpdateCurAcctComRespDto = implementCountSubAcctAndUpdateCurAcctCom(implementCountSubAcctAndUpdateCurAcctComReqDto)/*vcase invoke 同服务,同domain*/;



      }
else if((reqDto!= null&&  reqDto.getIsBudgetAccount() !=null && reqDto.getIsBudgetAccount().equals("FALSE"))){
       //elseif(D7-根据账户类型统计下级账户并更新当前账户(公共).是否预算账户 等于 否)  60692

if((reqDto!= null&&  reqDto.getIsOpenFundsArrival() !=null && reqDto.getIsOpenFundsArrival().equals("TRUE")&&reqDto!= null&& reqDto.getFinanceReceiptsAccountCode() != null )) {
        //if((D7-根据账户类型统计下级账户并更新当前账户(公共).是否开启资金到账 等于 是 and D7-根据账户类型统计下级账户并更新当前账户(公共).资金到账账户标识 值不等于空 ))  60695

ImplementNumericalContrastMagnitudeComRespDto implementNumericalContrastMagnitudeComRespDto = null;
    ImplementNumericalContrastMagnitudeComReqDto implementNumericalContrastMagnitudeComReqDto=new ImplementNumericalContrastMagnitudeComReqDto();
  if(reqDto!=null){
      implementNumericalContrastMagnitudeComReqDto.setCalcPara1(reqDto.getCurAccountCode()!=null?Double.valueOf(reqDto.getCurAccountCode()):null);//SimpleFieldAssign//sourceId:1527965_1_60735
implementNumericalContrastMagnitudeComReqDto.setCalcPara2(reqDto.getFinanceReceiptsAccountCode()!=null?Double.valueOf(reqDto.getFinanceReceiptsAccountCode()):null);//SimpleFieldAssign//sourceId:1527966_1_60735
    }

    /*D2-比对当前账户标识与资金到账账户标识[5551]   */
    Assert.isNull(implementNumericalContrastMagnitudeComReqDto.getCalcPara1(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D2-比对当前账户标识与资金到账账户标识-计算入参1不能为空",false);
Assert.isNull(implementNumericalContrastMagnitudeComReqDto.getCalcPara2(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D2-比对当前账户标识与资金到账账户标识-计算入参2不能为空",false);
      implementNumericalContrastMagnitudeComRespDto = fwCompInterfaceModeClient.implementNumericalContrastMagnitudeCom(implementNumericalContrastMagnitudeComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((implementNumericalContrastMagnitudeComRespDto!= null&&  implementNumericalContrastMagnitudeComRespDto.getNumCompareResult() !=null && implementNumericalContrastMagnitudeComRespDto.getNumCompareResult().equals("LATER")||implementNumericalContrastMagnitudeComRespDto!= null&&  implementNumericalContrastMagnitudeComRespDto.getNumCompareResult() !=null && implementNumericalContrastMagnitudeComRespDto.getNumCompareResult().equals("PRESENT"))) {
        //if((D2-比对当前账户标识与资金到账账户标识.数值比较结果 等于 之后（大于） or D2-比对当前账户标识与资金到账账户标识.数值比较结果 等于 当前（等于）))  60736

ImplementCountSubAcctAndUpdateCurAcctComRespDto implementCountSubAcctAndUpdateCurAcctComRespDto_1 = null;
    ImplementCountSubAcctAndUpdateCurAcctComReqDto implementCountSubAcctAndUpdateCurAcctComReqDto_1=new ImplementCountSubAcctAndUpdateCurAcctComReqDto();
  if(reqDto!=null){
      implementCountSubAcctAndUpdateCurAcctComReqDto_1.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1525249_1_60737
implementCountSubAcctAndUpdateCurAcctComReqDto_1.setAccountContentCode(reqDto.getCurAccountCode());//SimpleFieldAssign//sourceId:1564746_1_60737
implementCountSubAcctAndUpdateCurAcctComReqDto_1.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1525250_1_60737
implementCountSubAcctAndUpdateCurAcctComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1525251_1_60737
implementCountSubAcctAndUpdateCurAcctComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528039_1_60737
    }

    /*D7-执行统计下级账户更新当前账户并推Redis(公共)[8437]   */
    Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto_1.getAccountId(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-账户ID不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto_1.getIsBudgetAccount(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-是否预算账户不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto_1.getEvaluationTemplateId(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-评价模板ID不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto_1.getDataObjectBatchCode(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-数据对象批次标识不能为空",false);
      implementCountSubAcctAndUpdateCurAcctComRespDto_1 = implementCountSubAcctAndUpdateCurAcctCom(implementCountSubAcctAndUpdateCurAcctComReqDto_1)/*vcase invoke 同服务,同domain*/;



      }
      }
else if((reqDto!= null&&  reqDto.getIsOpenFundsArrival() !=null && reqDto.getIsOpenFundsArrival().equals("FALSE"))){
       //elseif(D7-根据账户类型统计下级账户并更新当前账户(公共).是否开启资金到账 等于 否)  60697

ImplementCountSubAcctAndUpdateCurAcctComRespDto implementCountSubAcctAndUpdateCurAcctComRespDto_2 = null;
    ImplementCountSubAcctAndUpdateCurAcctComReqDto implementCountSubAcctAndUpdateCurAcctComReqDto_2=new ImplementCountSubAcctAndUpdateCurAcctComReqDto();
  if(reqDto!=null){
      implementCountSubAcctAndUpdateCurAcctComReqDto_2.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1525249_1_60723
      implementCountSubAcctAndUpdateCurAcctComReqDto_2.setAccountContentCode(reqDto.getCurAccountCode());
implementCountSubAcctAndUpdateCurAcctComReqDto_2.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1525250_1_60723
implementCountSubAcctAndUpdateCurAcctComReqDto_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1525251_1_60723
implementCountSubAcctAndUpdateCurAcctComReqDto_2.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1528039_1_60723
    }

    /*D7-执行统计下级账户更新当前账户并推Redis(公共)[8437]   */
    Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto_2.getAccountId(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-账户ID不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto_2.getIsBudgetAccount(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-是否预算账户不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto_2.getEvaluationTemplateId(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-评价模板ID不能为空",false);
Assert.isNull(implementCountSubAcctAndUpdateCurAcctComReqDto_2.getDataObjectBatchCode(),"D7-根据账户类型统计下级账户并更新当前账户(公共)-D7-执行统计下级账户更新当前账户并推Redis(公共)-数据对象批次标识不能为空",false);
      implementCountSubAcctAndUpdateCurAcctComRespDto_2 = implementCountSubAcctAndUpdateCurAcctCom(implementCountSubAcctAndUpdateCurAcctComReqDto_2)/*vcase invoke 同服务,同domain*/;



    }
    }
ImplementAnaAcctTypeCountSubAcctAndUpdateCurAcctComRespDto retData = new ImplementAnaAcctTypeCountSubAcctAndUpdateCurAcctComRespDto();





return retData;
  }
/**
   * D7-执行更新当前账户（公共）[8488]
   * gen by moon at 5/27/2024, 1:20:14 PM
   */
  @Trace(operationName = "D7-执行更新当前账户（公共）")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementUpdateCurAcctPushRedisComRespDto implementUpdateCurAcctPushRedisCom(ImplementUpdateCurAcctPushRedisComReqDto reqDto){


      //virtualUsage M7约定流水业务故事：预算支出文案、预算到账文案  62171
      //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  receptionServiceReq.setCustomField1("账户预算费用支出");//CUSTOM_CONVENTION//sourceId:1567913_1_62171
receptionServiceReq.setCustomField2("账户预算费用到账");//CUSTOM_CONVENTION//sourceId:1567914_1_62171

    /*M7约定流水业务故事：预算支出文案、预算到账文案[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField1(),"D7-执行更新当前账户（公共）-M7约定流水业务故事：预算支出文案、预算到账文案-自定义字段1不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField2(),"D7-执行更新当前账户（公共）-M7约定流水业务故事：预算支出文案、预算到账文案-自定义字段2不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);



if((reqDto!= null&&  reqDto.getIsOpenFundsArrival() !=null && reqDto.getIsOpenFundsArrival().equals("TRUE"))) {
        //if(D7-执行更新当前账户（公共）.是否开启资金到账 等于 是)  62017

if((reqDto!= null&&  reqDto.getIsIncomingAccount() !=null && reqDto.getIsIncomingAccount().equals("FALSE"))) {
        //if(D7-执行更新当前账户（公共）.是否到账账户 等于 否)  62071

ImplementBillAndAccountComRespDto implementBillAndAccountComRespDto = null;
    ImplementBillAndAccountComReqDto implementBillAndAccountComReqDto=new ImplementBillAndAccountComReqDto();
implementBillAndAccountComReqDto.setBillTypeCode("INCOME");//sourceId:1566539_1_62087
implementBillAndAccountComReqDto.setIsOriginBill("FALSE");//sourceId:1566507_1_62087
implementBillAndAccountComReqDto.setIsButtFinance("FALSE");//sourceId:1566508_1_62087
implementBillAndAccountComReqDto.setBillMethod("TALLY");//sourceId:1566523_1_62087
implementBillAndAccountComReqDto.setBillStatus("COMPLETE");//sourceId:1566528_1_62087
if(reqDto!=null){
      implementBillAndAccountComReqDto.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566538_1_62087
implementBillAndAccountComReqDto.setBillAccountId(reqDto.getPhysicalAccountId());//SimpleFieldAssign//sourceId:1566510_1_62087
implementBillAndAccountComReqDto.setContnetAccountSubjectld(reqDto.getBudgetExpensesReceivedSubjectld());//SimpleFieldAssign//sourceId:1566535_1_62087
implementBillAndAccountComReqDto.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566518_1_62087
implementBillAndAccountComReqDto.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566519_1_62087
    }
if(receptionServiceRes!=null){
      implementBillAndAccountComReqDto.setBillBizStory(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1566509_1_62087
    }

    /*D7执行实体账户及账单处理（加）[8551]   */
Assert.isNull(implementBillAndAccountComReqDto.getBillAmount(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-账单金额不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillTypeCode(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-收支类型不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getIsOriginBill(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-是否发生方账单不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getIsButtFinance(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-是否对接财务不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillBizStory(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-流水业务故事信息不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillAccountId(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-账单归属账户ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getContnetAccountSubjectld(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-冗余内容科目ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getOppositeLogo(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-对方logo不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getOppositeName(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-对方名称不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillMethod(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-收支方式不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto.getBillStatus(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-账单状态不能为空",false);
      implementBillAndAccountComRespDto = implementBillAndAccountCom(implementBillAndAccountComReqDto)/*vcase invoke 同服务,同domain*/;



ImplementBillAndAccountComRespDto implementBillAndAccountComRespDto_1 = null;
    ImplementBillAndAccountComReqDto implementBillAndAccountComReqDto_1=new ImplementBillAndAccountComReqDto();
implementBillAndAccountComReqDto_1.setBillTypeCode("SPENDING");//sourceId:1566671_1_62088
implementBillAndAccountComReqDto_1.setIsOriginBill("FALSE");//sourceId:1566639_1_62088
implementBillAndAccountComReqDto_1.setIsButtFinance("FALSE");//sourceId:1566640_1_62088
implementBillAndAccountComReqDto_1.setBillMethod("TALLY");//sourceId:1566655_1_62088
implementBillAndAccountComReqDto_1.setBillStatus("COMPLETE");//sourceId:1566660_1_62088
if(reqDto!=null){
      implementBillAndAccountComReqDto_1.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566670_1_62088
implementBillAndAccountComReqDto_1.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1566641_1_62088
implementBillAndAccountComReqDto_1.setBillAccountId(reqDto.getPhysicalAccountId());//SimpleFieldAssign//sourceId:1566642_1_62088
implementBillAndAccountComReqDto_1.setContnetAccountSubjectld(reqDto.getFundUsageSubjectld());//SimpleFieldAssign//sourceId:1566667_1_62088
implementBillAndAccountComReqDto_1.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566650_1_62088
implementBillAndAccountComReqDto_1.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566651_1_62088
    }

    /*D7执行实体账户及账单处理（减）[8551]   */
Assert.isNull(implementBillAndAccountComReqDto_1.getBillAmount(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单金额不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getBillTypeCode(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-收支类型不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getIsOriginBill(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-是否发生方账单不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getIsButtFinance(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-是否对接财务不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getBillBizStory(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-流水业务故事信息不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getBillAccountId(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单归属账户ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getContnetAccountSubjectld(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-冗余内容科目ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getOppositeLogo(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-对方logo不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getOppositeName(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-对方名称不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getBillMethod(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-收支方式不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_1.getBillStatus(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单状态不能为空",false);
      implementBillAndAccountComRespDto_1 = implementBillAndAccountCom(implementBillAndAccountComReqDto_1)/*vcase invoke 同服务,同domain*/;



OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq.setIsBudgetAccount("FALSE");//sourceId:1567095_1_62131
queryFinanceAccountDetailComReq.setIsIncomingAccount("TRUE");//sourceId:1567096_1_62131
queryFinanceAccountDetailComReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1567067_1_62131
queryFinanceAccountDetailComReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1567068_1_62131
if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountContentCode(reqDto.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1567066_1_62131
    }

    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountContentCode(),"D7-执行更新当前账户（公共）-7-1-01-查询资金账户详情-关联归属主体标识不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsBudgetAccount(),"D7-执行更新当前账户（公共）-7-1-01-查询资金账户详情-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsIncomingAccount(),"D7-执行更新当前账户（公共）-7-1-01-查询资金账户详情-是否到账账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSubjectLifeCycle(),"D7-执行更新当前账户（公共）-7-1-01-查询资金账户详情-主体生命周期不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSpaceId(),"D7-执行更新当前账户（公共）-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsAccount== null||  omsAccount.getAccountId() ==null,"找不到数据，系统异常",false);


ImplementBillAndAccountComRespDto implementBillAndAccountComRespDto_2 = null;
    if(omsAccount !=null){
          ImplementBillAndAccountComReqDto implementBillAndAccountComReqDto_2=new ImplementBillAndAccountComReqDto();
implementBillAndAccountComReqDto_2.setBillTypeCode("SPENDING");//sourceId:1566671_1_62136
implementBillAndAccountComReqDto_2.setIsOriginBill("FALSE");//sourceId:1566639_1_62136
implementBillAndAccountComReqDto_2.setIsButtFinance("FALSE");//sourceId:1566640_1_62136
implementBillAndAccountComReqDto_2.setBillMethod("TALLY");//sourceId:1566655_1_62136
implementBillAndAccountComReqDto_2.setBillStatus("COMPLETE");//sourceId:1566660_1_62136
if(reqDto!=null){
      implementBillAndAccountComReqDto_2.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566670_1_62136
implementBillAndAccountComReqDto_2.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1566641_1_62136
implementBillAndAccountComReqDto_2.setContnetAccountSubjectld(reqDto.getFundUsageSubjectld());//SimpleFieldAssign//sourceId:1566667_1_62136
implementBillAndAccountComReqDto_2.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566650_1_62136
implementBillAndAccountComReqDto_2.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566651_1_62136
    }
if(omsAccount!=null){
      implementBillAndAccountComReqDto_2.setBillAccountId(omsAccount.getAccountId());//SimpleFieldAssign//sourceId:1566642_1_62136
    }

    /*D7执行实体账户及账单处理（减）[8551]   */
Assert.isNull(implementBillAndAccountComReqDto_2.getBillAmount(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单金额不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getBillTypeCode(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-收支类型不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getIsOriginBill(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-是否发生方账单不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getIsButtFinance(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-是否对接财务不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getBillBizStory(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-流水业务故事信息不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getBillAccountId(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单归属账户ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getContnetAccountSubjectld(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-冗余内容科目ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getOppositeLogo(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-对方logo不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getOppositeName(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-对方名称不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getBillMethod(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-收支方式不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_2.getBillStatus(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单状态不能为空",false);
      implementBillAndAccountComRespDto_2 = implementBillAndAccountCom(implementBillAndAccountComReqDto_2)/*vcase invoke 同服务,同domain*/;



           }
      }
else if((reqDto!= null&&  reqDto.getIsIncomingAccount() !=null && reqDto.getIsIncomingAccount().equals("TRUE"))){
       //elseif(D7-执行更新当前账户（公共）.是否到账账户 等于 是)  62081

ImplementBillAndAccountComRespDto implementBillAndAccountComRespDto_3 = null;
    ImplementBillAndAccountComReqDto implementBillAndAccountComReqDto_3=new ImplementBillAndAccountComReqDto();
implementBillAndAccountComReqDto_3.setBillTypeCode("SPENDING");//sourceId:1566671_1_62086
implementBillAndAccountComReqDto_3.setIsOriginBill("FALSE");//sourceId:1566639_1_62086
implementBillAndAccountComReqDto_3.setIsButtFinance("FALSE");//sourceId:1566640_1_62086
implementBillAndAccountComReqDto_3.setBillMethod("TALLY");//sourceId:1566655_1_62086
implementBillAndAccountComReqDto_3.setBillStatus("COMPLETE");//sourceId:1566660_1_62086
if(reqDto!=null){
      implementBillAndAccountComReqDto_3.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566670_1_62086
implementBillAndAccountComReqDto_3.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1566641_1_62086
implementBillAndAccountComReqDto_3.setBillAccountId(reqDto.getPhysicalAccountId());//SimpleFieldAssign//sourceId:1566642_1_62086
implementBillAndAccountComReqDto_3.setContnetAccountSubjectld(reqDto.getFundUsageSubjectld());//SimpleFieldAssign//sourceId:1566667_1_62086
implementBillAndAccountComReqDto_3.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566650_1_62086
implementBillAndAccountComReqDto_3.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566651_1_62086
    }

    /*D7执行实体账户及账单处理（减）[8551]   */
Assert.isNull(implementBillAndAccountComReqDto_3.getBillAmount(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单金额不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getBillTypeCode(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-收支类型不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getIsOriginBill(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-是否发生方账单不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getIsButtFinance(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-是否对接财务不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getBillBizStory(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-流水业务故事信息不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getBillAccountId(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单归属账户ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getContnetAccountSubjectld(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-冗余内容科目ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getOppositeLogo(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-对方logo不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getOppositeName(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-对方名称不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getBillMethod(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-收支方式不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_3.getBillStatus(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单状态不能为空",false);
      implementBillAndAccountComRespDto_3 = implementBillAndAccountCom(implementBillAndAccountComReqDto_3)/*vcase invoke 同服务,同domain*/;



    }
else{
       //else  62082

//异常结束 62083
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
      }
else if((reqDto!= null&&  reqDto.getIsOpenFundsArrival() !=null && reqDto.getIsOpenFundsArrival().equals("FALSE")&&reqDto!= null&& reqDto.getBudgetAccountId() != null )){
       //elseif((D7-执行更新当前账户（公共）.是否开启资金到账 等于 否 and D7-执行更新当前账户（公共）.预算账户ID 值不等于空 ))  62018

ImplementBillAndAccountComRespDto implementBillAndAccountComRespDto_4 = null;
    ImplementBillAndAccountComReqDto implementBillAndAccountComReqDto_4=new ImplementBillAndAccountComReqDto();
implementBillAndAccountComReqDto_4.setBillTypeCode("SPENDING");//sourceId:1566480_1_62074
implementBillAndAccountComReqDto_4.setIsOriginBill("FALSE");//sourceId:1566448_1_62074
implementBillAndAccountComReqDto_4.setIsButtFinance("FALSE");//sourceId:1566449_1_62074
implementBillAndAccountComReqDto_4.setBillMethod("TALLY");//sourceId:1566464_1_62074
implementBillAndAccountComReqDto_4.setBillStatus("COMPLETE");//sourceId:1566469_1_62074
if(reqDto!=null){
      implementBillAndAccountComReqDto_4.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566479_1_62074
implementBillAndAccountComReqDto_4.setBillAccountId(reqDto.getBudgetAccountId());//SimpleFieldAssign//sourceId:1566451_1_62074
implementBillAndAccountComReqDto_4.setContnetAccountSubjectld(reqDto.getBudgetExpenseSubjectld());//SimpleFieldAssign//sourceId:1566476_1_62074
implementBillAndAccountComReqDto_4.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566459_1_62074
implementBillAndAccountComReqDto_4.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566460_1_62074
    }
if(receptionServiceRes!=null){
      implementBillAndAccountComReqDto_4.setBillBizStory(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1566450_1_62074
    }

    /*D7执行预算账户及账单处理（减）[8551]   */
Assert.isNull(implementBillAndAccountComReqDto_4.getBillAmount(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-账单金额不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getBillTypeCode(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-收支类型不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getIsOriginBill(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-是否发生方账单不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getIsButtFinance(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-是否对接财务不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getBillBizStory(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-流水业务故事信息不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getBillAccountId(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-账单归属账户ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getContnetAccountSubjectld(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-冗余内容科目ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getOppositeLogo(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-对方logo不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getOppositeName(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-对方名称不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getBillMethod(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-收支方式不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_4.getBillStatus(),"D7-执行更新当前账户（公共）-D7执行预算账户及账单处理（减）-账单状态不能为空",false);
      implementBillAndAccountComRespDto_4 = implementBillAndAccountCom(implementBillAndAccountComReqDto_4)/*vcase invoke 同服务,同domain*/;



ImplementBillAndAccountComRespDto implementBillAndAccountComRespDto_5 = null;
    ImplementBillAndAccountComReqDto implementBillAndAccountComReqDto_5=new ImplementBillAndAccountComReqDto();
implementBillAndAccountComReqDto_5.setBillTypeCode("INCOME");//sourceId:1566539_1_62084
implementBillAndAccountComReqDto_5.setIsOriginBill("FALSE");//sourceId:1566507_1_62084
implementBillAndAccountComReqDto_5.setIsButtFinance("FALSE");//sourceId:1566508_1_62084
implementBillAndAccountComReqDto_5.setBillMethod("TALLY");//sourceId:1566523_1_62084
implementBillAndAccountComReqDto_5.setBillStatus("COMPLETE");//sourceId:1566528_1_62084
if(reqDto!=null){
      implementBillAndAccountComReqDto_5.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566538_1_62084
implementBillAndAccountComReqDto_5.setBillAccountId(reqDto.getPhysicalAccountId());//SimpleFieldAssign//sourceId:1566510_1_62084
implementBillAndAccountComReqDto_5.setContnetAccountSubjectld(reqDto.getBudgetExpensesReceivedSubjectld());//SimpleFieldAssign//sourceId:1566535_1_62084
implementBillAndAccountComReqDto_5.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566518_1_62084
implementBillAndAccountComReqDto_5.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566519_1_62084
    }
if(receptionServiceRes!=null){
      implementBillAndAccountComReqDto_5.setBillBizStory(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1566509_1_62084
    }

    /*D7执行实体账户及账单处理（加）[8551]   */
Assert.isNull(implementBillAndAccountComReqDto_5.getBillAmount(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-账单金额不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getBillTypeCode(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-收支类型不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getIsOriginBill(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-是否发生方账单不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getIsButtFinance(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-是否对接财务不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getBillBizStory(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-流水业务故事信息不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getBillAccountId(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-账单归属账户ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getContnetAccountSubjectld(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-冗余内容科目ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getOppositeLogo(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-对方logo不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getOppositeName(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-对方名称不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getBillMethod(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-收支方式不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_5.getBillStatus(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（加）-账单状态不能为空",false);
      implementBillAndAccountComRespDto_5 = implementBillAndAccountCom(implementBillAndAccountComReqDto_5)/*vcase invoke 同服务,同domain*/;



ImplementBillAndAccountComRespDto implementBillAndAccountComRespDto_6 = null;
    ImplementBillAndAccountComReqDto implementBillAndAccountComReqDto_6=new ImplementBillAndAccountComReqDto();
implementBillAndAccountComReqDto_6.setBillTypeCode("SPENDING");//sourceId:1566671_1_62085
implementBillAndAccountComReqDto_6.setIsOriginBill("FALSE");//sourceId:1566639_1_62085
implementBillAndAccountComReqDto_6.setIsButtFinance("FALSE");//sourceId:1566640_1_62085
implementBillAndAccountComReqDto_6.setBillMethod("TALLY");//sourceId:1566655_1_62085
implementBillAndAccountComReqDto_6.setBillStatus("COMPLETE");//sourceId:1566660_1_62085
if(reqDto!=null){
      implementBillAndAccountComReqDto_6.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566670_1_62085
implementBillAndAccountComReqDto_6.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1566641_1_62085
implementBillAndAccountComReqDto_6.setBillAccountId(reqDto.getPhysicalAccountId());//SimpleFieldAssign//sourceId:1566642_1_62085
implementBillAndAccountComReqDto_6.setContnetAccountSubjectld(reqDto.getFundUsageSubjectld());//SimpleFieldAssign//sourceId:1566667_1_62085
implementBillAndAccountComReqDto_6.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566650_1_62085
implementBillAndAccountComReqDto_6.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566651_1_62085
    }

    /*D7执行实体账户及账单处理（减）[8551]   */
Assert.isNull(implementBillAndAccountComReqDto_6.getBillAmount(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单金额不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getBillTypeCode(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-收支类型不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getIsOriginBill(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-是否发生方账单不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getIsButtFinance(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-是否对接财务不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getBillBizStory(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-流水业务故事信息不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getBillAccountId(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单归属账户ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getContnetAccountSubjectld(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-冗余内容科目ID不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getOppositeLogo(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-对方logo不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getOppositeName(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-对方名称不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getBillMethod(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-收支方式不能为空",false);
Assert.isNull(implementBillAndAccountComReqDto_6.getBillStatus(),"D7-执行更新当前账户（公共）-D7执行实体账户及账单处理（减）-账单状态不能为空",false);
      implementBillAndAccountComRespDto_6 = implementBillAndAccountCom(implementBillAndAccountComReqDto_6)/*vcase invoke 同服务,同domain*/;



    }
ImplementUpdateCurAcctPushRedisComRespDto retData = new ImplementUpdateCurAcctPushRedisComRespDto();





return retData;
  }
/**
   * D7-查询财务账户列表ByIds(公共)[7673]
   * gen by moon at 2/19/2024, 12:44:28 PM
   */
  @Trace(operationName = "D7-查询财务账户列表ByIds(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public BatchQueryFinanceAccountListByIdsComRespDto batchQueryFinanceAccountListByIdsCom(BatchQueryFinanceAccountListByIdsComReqDto reqDto){


      List<OmsAccount> listOmsAccount_1 =new ArrayList<>();
//步骤0: 7-1-01-批量查询财务账户列表ByIds - batchQueryFinanceAccountListByIds
     List<OmsAccount> listOmsAccount =new ArrayList<>();
    BatchQueryFinanceAccountListByIdsReq batchQueryFinanceAccountListByIdsReq=new BatchQueryFinanceAccountListByIdsReq();
  if(reqDto!=null){
      batchQueryFinanceAccountListByIdsReq.setFinanceAccountList(reqDto.getFinanceAccountList());//list-field-assign//sourceId:1231990_1
batchQueryFinanceAccountListByIdsReq.setAccountTypeCode(reqDto.getAccountTypeCode());//SimpleFieldAssign//sourceId:1231979_1
batchQueryFinanceAccountListByIdsReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1231980_1
batchQueryFinanceAccountListByIdsReq.setEcologicalAccountTypeCode(reqDto.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1231981_1
batchQueryFinanceAccountListByIdsReq.setAccountObjectClass(reqDto.getAccountObjectClass());//SimpleFieldAssign//sourceId:1231982_1
batchQueryFinanceAccountListByIdsReq.setAccountObjectTypeCode(reqDto.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1231983_1
batchQueryFinanceAccountListByIdsReq.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1231984_1
batchQueryFinanceAccountListByIdsReq.setDistributionSystemTypeCode(reqDto.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1231985_1
batchQueryFinanceAccountListByIdsReq.setIsOrgOfficialAccountNom(reqDto.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1231986_1
batchQueryFinanceAccountListByIdsReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1553613_1
batchQueryFinanceAccountListByIdsReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1553614_1
batchQueryFinanceAccountListByIdsReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1231987_1
    }

    /*7-1-01-批量查询财务账户列表ByIds[7672]   */

      listOmsAccount = mOmsAccountService.batchQueryFinanceAccountListByIds(batchQueryFinanceAccountListByIdsReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsAccount_1 = listOmsAccount;

BatchQueryFinanceAccountListByIdsComRespDto retData = new BatchQueryFinanceAccountListByIdsComRespDto();
  retData.setFinanceAccountList(listOmsAccount_1.stream().map(item -> BeanUtil.toBean(item, FinanceAccountDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1232665_1




return retData;
  }
/**
   * D7获取目标内容兄弟预算账户(公共)[8509]
   * gen by moon at 2/19/2024, 7:43:48 PM
   */
  @Trace(operationName = "D7获取目标内容兄弟预算账户(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ObtainTargetContentBrotherBudgetAccountComRespDto obtainTargetContentBrotherBudgetAccountCom(ObtainTargetContentBrotherBudgetAccountComReqDto reqDto){


      BatchQueryFinanceAccountListByIdsComRespDto batchQueryFinanceAccountListByIdsComRespDto_1 =null;
//virtualUsage D2接上文下级目标内容数据集去除当前目标内容（用于查询预算账户）  61443
      ObtainDataFilterSpecRecByComRespDto obtainDataFilterSpecRecByComRespDto = null;
    ObtainDataFilterSpecRecByComReqDto obtainDataFilterSpecRecByComReqDto=new ObtainDataFilterSpecRecByComReqDto();
  if(reqDto!=null){
      // TODO: 2024/5/28
      obtainDataFilterSpecRecByComReqDto.setDataFilterSpecRecByList(reqDto.getFinanceAccountList().stream().map(p->{
          DataFilterSpecRecByDto elm = new DataFilterSpecRecByDto();
          elm.setComTxtField(p);
          return elm;
      }).collect(Collectors.toList()));//list-field-assign//sourceId:1553606_1_61443
obtainDataFilterSpecRecByComReqDto.setComTxtField(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1553605_1_61443
    }

    /*D2接上文下级目标内容数据集去除当前目标内容（用于查询预算账户）[7387]   */
    Assert.isNull(obtainDataFilterSpecRecByComReqDto.getComTxtField(),"D7获取目标内容兄弟预算账户(公共)-D2接上文下级目标内容数据集去除当前目标内容（用于查询预算账户）-通用文本字段不能为空",false);
      obtainDataFilterSpecRecByComRespDto = fwCompInterfaceModeClient.obtainDataFilterSpecRecByCom(obtainDataFilterSpecRecByComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((obtainDataFilterSpecRecByComRespDto!= null&&  obtainDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList() !=null && obtainDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList().size()>0)) {
        //if(D2接上文下级目标内容数据集去除当前目标内容（用于查询预算账户）.数据集按入参过滤指定记录列表数据集条数 大于 0)  61444

BatchQueryFinanceAccountListByIdsComRespDto batchQueryFinanceAccountListByIdsComRespDto = null;
    if(obtainDataFilterSpecRecByComRespDto !=null){
          BatchQueryFinanceAccountListByIdsComReqDto batchQueryFinanceAccountListByIdsComReqDto=new BatchQueryFinanceAccountListByIdsComReqDto();
  batchQueryFinanceAccountListByIdsComReqDto.setIsBudgetAccount("TRUE");//sourceId:1553596_1_61445
batchQueryFinanceAccountListByIdsComReqDto.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1553597_1_61445
batchQueryFinanceAccountListByIdsComReqDto.setAccountObjectClass("CONTENT_TYPE");//sourceId:1556551_1_61445
batchQueryFinanceAccountListByIdsComReqDto.setIsArchive("FALSE");//sourceId:1553618_1_61445
if(obtainDataFilterSpecRecByComRespDto!=null){
      batchQueryFinanceAccountListByIdsComReqDto.setFinanceAccountList(obtainDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList().stream().map(p->p.getComTxtField()).collect(Collectors.toList()));//list-field-assign//sourceId:1553594_1_61445
    }
if(reqDto!=null){
      batchQueryFinanceAccountListByIdsComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1553617_1_61445
    }

    /*D7查当前内容的兄弟预算账户列表[7673]   */
    Assert.isNull(batchQueryFinanceAccountListByIdsComReqDto.getThemeContentId(),"D7获取目标内容兄弟预算账户(公共)-D7查当前内容的兄弟预算账户列表-主题内容ID不能为空",false);
Assert.isNull(batchQueryFinanceAccountListByIdsComReqDto.getIsBudgetAccount(),"D7获取目标内容兄弟预算账户(公共)-D7查当前内容的兄弟预算账户列表-是否预算账户不能为空",false);
Assert.isNull(batchQueryFinanceAccountListByIdsComReqDto.getEcologicalAccountTypeCode(),"D7获取目标内容兄弟预算账户(公共)-D7查当前内容的兄弟预算账户列表-生态账户类型编码不能为空",false);
Assert.isNull(batchQueryFinanceAccountListByIdsComReqDto.getAccountObjectClass(),"D7获取目标内容兄弟预算账户(公共)-D7查当前内容的兄弟预算账户列表-账户关联主体分类类型不能为空",false);
Assert.isNull(batchQueryFinanceAccountListByIdsComReqDto.getIsArchive(),"D7获取目标内容兄弟预算账户(公共)-D7查当前内容的兄弟预算账户列表-是否存档不能为空",false);
      batchQueryFinanceAccountListByIdsComRespDto = batchQueryFinanceAccountListByIdsCom(batchQueryFinanceAccountListByIdsComReqDto)/*vcase invoke 同服务,同domain*/;


      batchQueryFinanceAccountListByIdsComRespDto_1 = batchQueryFinanceAccountListByIdsComRespDto;
           }
      }
ObtainTargetContentBrotherBudgetAccountComRespDto retData = new ObtainTargetContentBrotherBudgetAccountComRespDto();
  if(batchQueryFinanceAccountListByIdsComRespDto_1!= null&&  batchQueryFinanceAccountListByIdsComRespDto_1.getFinanceAccountList() !=null&& !CollectionUtil.isEmpty(batchQueryFinanceAccountListByIdsComRespDto_1.getFinanceAccountList())){
      retData.setTargetContentBrotherBudgetAccountList(batchQueryFinanceAccountListByIdsComRespDto_1.getFinanceAccountList().stream().map(item->item.getAccountId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1553619_1
    }




return retData;
  }
/**
   * D7删除目标内容预算设置(公共)[8516]
   * gen by moon at 2/19/2024, 12:45:41 PM
   */
  @Trace(operationName = "D7删除目标内容预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeleteTargetContentSetBudgetComRespDto deleteTargetContentSetBudgetCom(DeleteTargetContentSetBudgetComReqDto reqDto){


      //步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!=null){
      receptionServiceReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1555016_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1555015_1
    }

    /*M7接收字段[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getTargetCycleContentId(),"D7删除目标内容预算设置(公共)-M7接收字段-关联目标内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D7删除目标内容预算设置(公共)-M7接收字段-评价模板ID不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);




//步骤1: 7-1-07查询目标预算设置列表 - queryTargetBudgetSetList
     List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    QueryTargetBudgetSetListReq queryTargetBudgetSetListReq=new QueryTargetBudgetSetListReq();
  queryTargetBudgetSetListReq.setIsArchive("FALSE");//sourceId:1555025_1
if(reqDto!=null){
      queryTargetBudgetSetListReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1555022_1
queryTargetBudgetSetListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1555026_1
    }

    /*7-1-07查询目标预算设置列表[8375]   */
    Assert.isNull(queryTargetBudgetSetListReq.getTargetCycleContentId(),"D7删除目标内容预算设置(公共)-7-1-07查询目标预算设置列表-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getEvaluationTemplateId(),"D7删除目标内容预算设置(公共)-7-1-07查询目标预算设置列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getIsArchive(),"D7删除目标内容预算设置(公共)-7-1-07查询目标预算设置列表-是否存档不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetList(queryTargetBudgetSetListReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤2: 7-1-07批量删目标预算设置 - batchDeleteTargetBudgetSet
     boolean bOOLEAN ;
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          List<String> listString=new ArrayList<>();
  if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      listString = listOmsTargetCostset.stream().map(item->item.getTargetCostSetId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:1555027_1
    }

    /*7-1-07批量删目标预算设置[8378]   */

      bOOLEAN = mOmsTargetCostsetService.batchDeleteTargetBudgetSet(listString)/*vcase invoke 本地 method 方法调用;*/;



           }

DeleteTargetContentSetBudgetComRespDto retData = new DeleteTargetContentSetBudgetComRespDto();





return retData;
  }
/**
   * D7执行清理目标预算及账户账单(公共)[8508]
   * gen by moon at 2/19/2024, 8:02:20 PM
   */
  @Trace(operationName = "D7执行清理目标预算及账户账单(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementClearTargetBudgetAndBillAccountComRespDto implementClearTargetBudgetAndBillAccountCom(ImplementClearTargetBudgetAndBillAccountComReqDto reqDto){


      //virtualUsage 7-1-01查询当前内容资金账户详情（用于查询上级账户归属主体标识）  61537
      OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq.setIsBudgetAccount("TRUE");//sourceId:1555789_1_61537
queryFinanceAccountDetailComReq.setIsStatisticalAccount("FALSE");//sourceId:1555790_1_61537
queryFinanceAccountDetailComReq.setIsArchive("FALSE");//sourceId:1555794_1_61537
queryFinanceAccountDetailComReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1555795_1_61537
if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1555791_1_61537
queryFinanceAccountDetailComReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555793_1_61537
    }

    /*7-1-01查询当前内容资金账户详情（用于查询上级账户归属主体标识）[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountObjectId(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询当前内容资金账户详情（用于查询上级账户归属主体标识）-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsBudgetAccount(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询当前内容资金账户详情（用于查询上级账户归属主体标识）-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsStatisticalAccount(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询当前内容资金账户详情（用于查询上级账户归属主体标识）-是否统计账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getThemeContentId(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询当前内容资金账户详情（用于查询上级账户归属主体标识）-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getIsArchive(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询当前内容资金账户详情（用于查询上级账户归属主体标识）-是否存档不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSpaceId(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询当前内容资金账户详情（用于查询上级账户归属主体标识）-创建于空间ID不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;



//virtualUsage D7删除目标内容预算设置(公共)  61527
      DeleteTargetContentSetBudgetComRespDto deleteTargetContentSetBudgetComRespDto = null;
    DeleteTargetContentSetBudgetComReqDto deleteTargetContentSetBudgetComReqDto=new DeleteTargetContentSetBudgetComReqDto();
  if(reqDto!=null){
      deleteTargetContentSetBudgetComReqDto.setTargetCycleContentId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1555102_1_61527
deleteTargetContentSetBudgetComReqDto.setEvaluationTemplateId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555103_1_61527
    }

    /*D7删除目标内容预算设置(公共)[8516]   */
    Assert.isNull(deleteTargetContentSetBudgetComReqDto.getTargetCycleContentId(),"D7执行清理目标预算及账户账单(公共)-D7删除目标内容预算设置(公共)-关联目标内容ID不能为空",false);
Assert.isNull(deleteTargetContentSetBudgetComReqDto.getEvaluationTemplateId(),"D7执行清理目标预算及账户账单(公共)-D7删除目标内容预算设置(公共)-评价模板ID不能为空",false);
      deleteTargetContentSetBudgetComRespDto = deleteTargetContentSetBudgetCom(deleteTargetContentSetBudgetComReqDto)/*vcase invoke 同服务,同domain*/;



//virtualUsage D7删除当前及下级内容账户账单(公共)  61534
      DeleteCurrentAndSubContentBillAccountComRespDto deleteCurrentAndSubContentBillAccountComRespDto = null;
    DeleteCurrentAndSubContentBillAccountComReqDto deleteCurrentAndSubContentBillAccountComReqDto=new DeleteCurrentAndSubContentBillAccountComReqDto();
  if(reqDto!=null){
      deleteCurrentAndSubContentBillAccountComReqDto.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1555749_1_61534
deleteCurrentAndSubContentBillAccountComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555750_1_61534
    }

    /*D7删除当前及下级内容账户账单(公共)[8517]   */
    Assert.isNull(deleteCurrentAndSubContentBillAccountComReqDto.getAccountContentCode(),"D7执行清理目标预算及账户账单(公共)-D7删除当前及下级内容账户账单(公共)-关联归属主体标识不能为空",false);
Assert.isNull(deleteCurrentAndSubContentBillAccountComReqDto.getThemeContentId(),"D7执行清理目标预算及账户账单(公共)-D7删除当前及下级内容账户账单(公共)-主题内容ID不能为空",false);
      deleteCurrentAndSubContentBillAccountComRespDto = deleteCurrentAndSubContentBillAccountCom(deleteCurrentAndSubContentBillAccountComReqDto)/*vcase invoke 同服务,同domain*/;



//virtualUsage 7-1-01查询资金账户列表  61533
      List<OmsAccount> listOmsAccount =new ArrayList<>();
    if(omsAccount !=null){
          QueryFinanceAccountListReq queryFinanceAccountListReq=new QueryFinanceAccountListReq();
  queryFinanceAccountListReq.setIsBudgetAccount("TRUE");//sourceId:1555581_1_61533
queryFinanceAccountListReq.setAccountObjectClass("CONTENT_TYPE");//sourceId:1555591_1_61533
queryFinanceAccountListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1555586_1_61533
if(omsAccount!=null){
      queryFinanceAccountListReq.setParentAccountContentCode(omsAccount.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1555588_1_61533
    }
if(reqDto!=null){
      queryFinanceAccountListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555587_1_61533
    }

    /*7-1-01查询资金账户列表[8419]   */
    Assert.isNull(queryFinanceAccountListReq.getThemeContentId(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询资金账户列表-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getIsBudgetAccount(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询资金账户列表-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountObjectClass(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询资金账户列表-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSpaceId(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询资金账户列表-创建于空间ID不能为空",false);
      listOmsAccount = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq)/*vcase invoke 本地 method 方法调用;*/;



           }
//virtualUsage D7获取目标内容兄弟预算账户(公共)  61447
      ObtainTargetContentBrotherBudgetAccountComRespDto obtainTargetContentBrotherBudgetAccountComRespDto = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          ObtainTargetContentBrotherBudgetAccountComReqDto obtainTargetContentBrotherBudgetAccountComReqDto=new ObtainTargetContentBrotherBudgetAccountComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      obtainTargetContentBrotherBudgetAccountComReqDto.setFinanceAccountList(listOmsAccount.stream().map(item->item.getAccountObjectId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1555039_1_61447
    }
if(reqDto!=null){
      obtainTargetContentBrotherBudgetAccountComReqDto.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1555040_1_61447
obtainTargetContentBrotherBudgetAccountComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555041_1_61447
    }

    /*D7获取目标内容兄弟预算账户(公共)[8509]   */
    Assert.isNull(obtainTargetContentBrotherBudgetAccountComReqDto.getAccountObjectId(),"D7执行清理目标预算及账户账单(公共)-D7获取目标内容兄弟预算账户(公共)-关联归属主体ID不能为空",false);
Assert.isNull(obtainTargetContentBrotherBudgetAccountComReqDto.getThemeContentId(),"D7执行清理目标预算及账户账单(公共)-D7获取目标内容兄弟预算账户(公共)-主题内容ID不能为空",false);
      obtainTargetContentBrotherBudgetAccountComRespDto = obtainTargetContentBrotherBudgetAccountCom(obtainTargetContentBrotherBudgetAccountComReqDto)/*vcase invoke 同服务,同domain*/;



           }
if((reqDto!= null&&  reqDto.getFinanceAccountList() !=null && reqDto.getFinanceAccountList().size()>0&&obtainTargetContentBrotherBudgetAccountComRespDto!= null&&  obtainTargetContentBrotherBudgetAccountComRespDto.getTargetContentBrotherBudgetAccountList() !=null && obtainTargetContentBrotherBudgetAccountComRespDto.getTargetContentBrotherBudgetAccountList().size()==0)) {
        //if((D7执行关闭目标预算(公共).资金账户列表数据集条数 大于 0 and D7获取当前目标内容兄弟预算账户(公共).目标内容兄弟预算账户列表数据集条数 等于 0))  61448

//ModelCode: circulationCollections
        for (FinanceAccountDto circulationCollectionsRes: reqDto.getFinanceAccountList()){

List<OmsAccount> listOmsAccount_2 =new ArrayList<>();
    QueryFinanceAccountListReq queryFinanceAccountListReq_1=new QueryFinanceAccountListReq();
  queryFinanceAccountListReq_1.setIsBudgetAccount("TRUE");//sourceId:1555581_1_61531
queryFinanceAccountListReq_1.setAccountObjectClass("CONTENT_TYPE");//sourceId:1555591_1_61531
queryFinanceAccountListReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1555586_1_61531
if(circulationCollectionsRes!=null){
      queryFinanceAccountListReq_1.setParentAccountContentCode(circulationCollectionsRes.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1555588_1_61531
    }
if(reqDto!=null){
      queryFinanceAccountListReq_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555587_1_61531
    }

    /*7-1-01查询资金账户列表[8419]   */
    Assert.isNull(queryFinanceAccountListReq_1.getThemeContentId(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询资金账户列表-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq_1.getIsBudgetAccount(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询资金账户列表-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountListReq_1.getAccountObjectClass(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询资金账户列表-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq_1.getSpaceId(),"D7执行清理目标预算及账户账单(公共)-7-1-01查询资金账户列表-创建于空间ID不能为空",false);
      listOmsAccount_2 = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq_1)/*vcase invoke 本地 method 方法调用;*/;



ObtainTargetContentBrotherBudgetAccountComRespDto obtainTargetContentBrotherBudgetAccountComRespDto_2 = null;
    if(listOmsAccount_2 !=null&& !CollectionUtil.isEmpty(listOmsAccount_2)&& listOmsAccount_2.size()>0 ){
          ObtainTargetContentBrotherBudgetAccountComReqDto obtainTargetContentBrotherBudgetAccountComReqDto_1=new ObtainTargetContentBrotherBudgetAccountComReqDto();
  if(listOmsAccount_2!= null&& !CollectionUtil.isEmpty(listOmsAccount_2)&&  listOmsAccount_2 !=null&& !CollectionUtil.isEmpty(listOmsAccount_2)){
      obtainTargetContentBrotherBudgetAccountComReqDto_1.setFinanceAccountList(listOmsAccount_2.stream().map(item->item.getAccountObjectId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1555039_1_61460
    }
if(circulationCollectionsRes!=null){
      obtainTargetContentBrotherBudgetAccountComReqDto_1.setAccountObjectId(circulationCollectionsRes.getAccountObjectId());//SimpleFieldAssign//sourceId:1555040_1_61460
    }
if(reqDto!=null){
      obtainTargetContentBrotherBudgetAccountComReqDto_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555041_1_61460
    }

    /*D7获取目标内容兄弟预算账户(公共)[8509]   */
    Assert.isNull(obtainTargetContentBrotherBudgetAccountComReqDto_1.getAccountObjectId(),"D7执行清理目标预算及账户账单(公共)-D7获取目标内容兄弟预算账户(公共)-关联归属主体ID不能为空",false);
Assert.isNull(obtainTargetContentBrotherBudgetAccountComReqDto_1.getThemeContentId(),"D7执行清理目标预算及账户账单(公共)-D7获取目标内容兄弟预算账户(公共)-主题内容ID不能为空",false);
      obtainTargetContentBrotherBudgetAccountComRespDto_2 = obtainTargetContentBrotherBudgetAccountCom(obtainTargetContentBrotherBudgetAccountComReqDto_1)/*vcase invoke 同服务,同domain*/;



           }
if((obtainTargetContentBrotherBudgetAccountComRespDto_2!= null&&  obtainTargetContentBrotherBudgetAccountComRespDto_2.getTargetContentBrotherBudgetAccountList() !=null && obtainTargetContentBrotherBudgetAccountComRespDto_2.getTargetContentBrotherBudgetAccountList().size()==0)) {
        //if(D3获取当前祖先牌目标内容兄弟预算账户(公共).目标内容兄弟预算账户列表数据集条数 等于 0)  61462

DeleteTargetContentSetBudgetComRespDto deleteTargetContentSetBudgetComRespDto_1 = null;
    DeleteTargetContentSetBudgetComReqDto deleteTargetContentSetBudgetComReqDto_1=new DeleteTargetContentSetBudgetComReqDto();
  if(circulationCollectionsRes!=null){
      deleteTargetContentSetBudgetComReqDto_1.setTargetCycleContentId(circulationCollectionsRes.getAccountObjectId());//SimpleFieldAssign//sourceId:1555102_1_61532
    }
if(reqDto!=null){
      deleteTargetContentSetBudgetComReqDto_1.setEvaluationTemplateId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555103_1_61532
    }

    /*D7删除目标内容预算设置(公共)[8516]   */
    Assert.isNull(deleteTargetContentSetBudgetComReqDto_1.getTargetCycleContentId(),"D7执行清理目标预算及账户账单(公共)-D7删除目标内容预算设置(公共)-关联目标内容ID不能为空",false);
Assert.isNull(deleteTargetContentSetBudgetComReqDto_1.getEvaluationTemplateId(),"D7执行清理目标预算及账户账单(公共)-D7删除目标内容预算设置(公共)-评价模板ID不能为空",false);
      deleteTargetContentSetBudgetComRespDto_1 = deleteTargetContentSetBudgetCom(deleteTargetContentSetBudgetComReqDto_1)/*vcase invoke 同服务,同domain*/;



DeleteBillAndAccountComRespDto deleteBillAndAccountComRespDto = null;
    DeleteBillAndAccountComReqDto deleteBillAndAccountComReqDto=new DeleteBillAndAccountComReqDto();
  if(circulationCollectionsRes!=null){
      deleteBillAndAccountComReqDto.setAccountObjectId(circulationCollectionsRes.getAccountObjectId());//SimpleFieldAssign//sourceId:1555427_1_61463
    }
if(reqDto!=null){
      deleteBillAndAccountComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555428_1_61463
    }

    /*D7删除账户账单(公共)[8511]   */
    Assert.isNull(deleteBillAndAccountComReqDto.getAccountObjectId(),"D7执行清理目标预算及账户账单(公共)-D7删除账户账单(公共)-关联归属主体ID不能为空",false);
Assert.isNull(deleteBillAndAccountComReqDto.getThemeContentId(),"D7执行清理目标预算及账户账单(公共)-D7删除账户账单(公共)-主题内容ID不能为空",false);
      deleteBillAndAccountComRespDto = deleteBillAndAccountCom(deleteBillAndAccountComReqDto)/*vcase invoke 同服务,同domain*/;



      }
//ModelCode: circulationEnd
        }

      }
ImplementClearTargetBudgetAndBillAccountComRespDto retData = new ImplementClearTargetBudgetAndBillAccountComRespDto();





return retData;
  }
/**
   * D7删除账户账单(公共)[8511]
   * gen by moon at 2/19/2024, 7:44:06 PM
   */
  @Trace(operationName = "D7删除账户账单(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeleteBillAndAccountComRespDto deleteBillAndAccountCom(DeleteBillAndAccountComReqDto reqDto){


      //virtualUsage 7-1-01查询资金账户列表  61453
      List<OmsAccount> listOmsAccount =new ArrayList<>();
    QueryFinanceAccountListReq queryFinanceAccountListReq=new QueryFinanceAccountListReq();
  queryFinanceAccountListReq.setAccountObjectClass("CONTENT_TYPE");//sourceId:1553931_1_61453
queryFinanceAccountListReq.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1556555_1_61453
queryFinanceAccountListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1553934_1_61453
if(reqDto!=null){
      queryFinanceAccountListReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1553970_1_61453
queryFinanceAccountListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1553935_1_61453
    }

    /*7-1-01查询资金账户列表[8419]   */
    Assert.isNull(queryFinanceAccountListReq.getAccountObjectId(),"D7删除账户账单(公共)-7-1-01查询资金账户列表-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getThemeContentId(),"D7删除账户账单(公共)-7-1-01查询资金账户列表-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountObjectClass(),"D7删除账户账单(公共)-7-1-01查询资金账户列表-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getEcologicalAccountTypeCode(),"D7删除账户账单(公共)-7-1-01查询资金账户列表-生态账户类型编码不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSpaceId(),"D7删除账户账单(公共)-7-1-01查询资金账户列表-创建于空间ID不能为空",false);
      listOmsAccount = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq)/*vcase invoke 本地 method 方法调用;*/;



//virtualUsage 7-1-01批量删资金账户  61454
      boolean bOOLEAN ;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          List<String> listString=new ArrayList<>();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      listString = listOmsAccount.stream().map(item->item.getAccountId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:1553948_1_61454
    }

    /*7-1-01批量删资金账户[8512]   */

      bOOLEAN = mOmsAccountService.batchDeleteFinanceAccount(listString)/*vcase invoke 本地 method 方法调用;*/;



           }
//virtualUsage 7-1-02批量查询资金账单列表ByIds  61455
      List<OmsBill> listOmsBill =new ArrayList<>();
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          BatchQueryFinanceBillListByIdsReq batchQueryFinanceBillListByIdsReq=new BatchQueryFinanceBillListByIdsReq();
  batchQueryFinanceBillListByIdsReq.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1553957_1_61455
batchQueryFinanceBillListByIdsReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1553959_1_61455
if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      batchQueryFinanceBillListByIdsReq.setFinanceBillList(listOmsAccount.stream().map(item->item.getAccountId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1553956_1_61455
    }

    /*7-1-02批量查询资金账单列表ByIds[8513]   */
    Assert.isNull(batchQueryFinanceBillListByIdsReq.getEcologicalAccountTypeCode(),"D7删除账户账单(公共)-7-1-02批量查询资金账单列表ByIds-生态账户类型编码不能为空",false);
Assert.isNull(batchQueryFinanceBillListByIdsReq.getSpaceId(),"D7删除账户账单(公共)-7-1-02批量查询资金账单列表ByIds-创建于空间ID不能为空",false);
      listOmsBill = mOmsBillService.batchQueryFinanceBillListByIds(batchQueryFinanceBillListByIdsReq)/*vcase invoke 本地 method 方法调用;*/;



           }
//virtualUsage 7-1-02批量删资金账单  61456
      boolean bOOLEAN_1 ;
    if(listOmsBill !=null&& !CollectionUtil.isEmpty(listOmsBill)&& listOmsBill.size()>0 ){
          List<String> listString_1=new ArrayList<>();
  if(listOmsBill!= null&& !CollectionUtil.isEmpty(listOmsBill)&&  listOmsBill !=null&& !CollectionUtil.isEmpty(listOmsBill)){
      listString_1 = listOmsBill.stream().map(item->item.getBillFlowId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:1553962_1_61456
    }

    /*7-1-02批量删资金账单[8514]   */

      bOOLEAN_1 = mOmsBillService.batchDeleteFinanceBill(listString_1)/*vcase invoke 本地 method 方法调用;*/;



           }
DeleteBillAndAccountComRespDto retData = new DeleteBillAndAccountComRespDto();





return retData;
  }
/**
   * D7删除当前及下级内容账户账单(公共)[8517]
   * gen by moon at 2/19/2024, 7:44:24 PM
   */
  @Trace(operationName = "D7删除当前及下级内容账户账单(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeleteCurrentAndSubContentBillAccountComRespDto deleteCurrentAndSubContentBillAccountCom(DeleteCurrentAndSubContentBillAccountComReqDto reqDto){


      //步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!=null){
      receptionServiceReq.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1555713_1
receptionServiceReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555714_1
    }

    /*M7接收字段[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getAccountContentCode(),"D7删除当前及下级内容账户账单(公共)-M7接收字段-关联归属主体标识不能为空",false);
Assert.isNull(receptionServiceReq.getThemeContentId(),"D7删除当前及下级内容账户账单(公共)-M7接收字段-主题内容ID不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);




//步骤1: 7-1-01执行归属主体标识右模糊查账户 - implementContentCodeRightBlurQueryAccount
     List<OmsAccount> listOmsAccount =new ArrayList<>();
    ImplementContentCodeRightBlurQueryAccountReq implementContentCodeRightBlurQueryAccountReq=new ImplementContentCodeRightBlurQueryAccountReq();
  implementContentCodeRightBlurQueryAccountReq.setIsBudgetAccount("TRUE");//sourceId:1555730_1
implementContentCodeRightBlurQueryAccountReq.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1555729_1
implementContentCodeRightBlurQueryAccountReq.setAccountObjectClass("CONTENT_TYPE");//sourceId:1555733_1
implementContentCodeRightBlurQueryAccountReq.setIsArchive("FALSE");//sourceId:1555738_1
implementContentCodeRightBlurQueryAccountReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1555739_1
if(reqDto!=null){
      implementContentCodeRightBlurQueryAccountReq.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1555734_1
implementContentCodeRightBlurQueryAccountReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1555735_1
    }

    /*7-1-01执行归属主体标识右模糊查账户[8518]   */
    Assert.isNull(implementContentCodeRightBlurQueryAccountReq.getAccountContentCode(),"D7删除当前及下级内容账户账单(公共)-7-1-01执行归属主体标识右模糊查账户-关联归属主体标识不能为空",false);
Assert.isNull(implementContentCodeRightBlurQueryAccountReq.getThemeContentId(),"D7删除当前及下级内容账户账单(公共)-7-1-01执行归属主体标识右模糊查账户-主题内容ID不能为空",false);
Assert.isNull(implementContentCodeRightBlurQueryAccountReq.getIsBudgetAccount(),"D7删除当前及下级内容账户账单(公共)-7-1-01执行归属主体标识右模糊查账户-是否预算账户不能为空",false);
Assert.isNull(implementContentCodeRightBlurQueryAccountReq.getEcologicalAccountTypeCode(),"D7删除当前及下级内容账户账单(公共)-7-1-01执行归属主体标识右模糊查账户-生态账户类型编码不能为空",false);
Assert.isNull(implementContentCodeRightBlurQueryAccountReq.getAccountObjectClass(),"D7删除当前及下级内容账户账单(公共)-7-1-01执行归属主体标识右模糊查账户-账户关联主体分类类型不能为空",false);
Assert.isNull(implementContentCodeRightBlurQueryAccountReq.getIsArchive(),"D7删除当前及下级内容账户账单(公共)-7-1-01执行归属主体标识右模糊查账户-是否存档不能为空",false);
Assert.isNull(implementContentCodeRightBlurQueryAccountReq.getSpaceId(),"D7删除当前及下级内容账户账单(公共)-7-1-01执行归属主体标识右模糊查账户-创建于空间ID不能为空",false);
      listOmsAccount = mOmsAccountService.implementContentCodeRightBlurQueryAccount(implementContentCodeRightBlurQueryAccountReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤2: 7-1-01批量删资金账户 - batchDeleteFinanceAccount
     boolean bOOLEAN ;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          List<String> listString=new ArrayList<>();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      listString = listOmsAccount.stream().map(item->item.getAccountId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:1555742_1
    }

    /*7-1-01批量删资金账户[8512]   */

      bOOLEAN = mOmsAccountService.batchDeleteFinanceAccount(listString)/*vcase invoke 本地 method 方法调用;*/;



           }

//步骤3: 7-1-02批量查询资金账单列表ByIds - batchQueryFinanceBillListByIds
     List<OmsBill> listOmsBill =new ArrayList<>();
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          BatchQueryFinanceBillListByIdsReq batchQueryFinanceBillListByIdsReq=new BatchQueryFinanceBillListByIdsReq();
  batchQueryFinanceBillListByIdsReq.setEcologicalAccountTypeCode("TARGET_CONTENT_ACCOUNT");//sourceId:1556556_1
batchQueryFinanceBillListByIdsReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1555747_1
if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      batchQueryFinanceBillListByIdsReq.setFinanceBillList(listOmsAccount.stream().map(item->item.getAccountId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1555744_1
    }

    /*7-1-02批量查询资金账单列表ByIds[8513]   */
    Assert.isNull(batchQueryFinanceBillListByIdsReq.getEcologicalAccountTypeCode(),"D7删除当前及下级内容账户账单(公共)-7-1-02批量查询资金账单列表ByIds-生态账户类型编码不能为空",false);
Assert.isNull(batchQueryFinanceBillListByIdsReq.getSpaceId(),"D7删除当前及下级内容账户账单(公共)-7-1-02批量查询资金账单列表ByIds-创建于空间ID不能为空",false);
      listOmsBill = mOmsBillService.batchQueryFinanceBillListByIds(batchQueryFinanceBillListByIdsReq)/*vcase invoke 本地 method 方法调用;*/;



           }

//步骤4: 7-1-02批量删资金账单 - batchDeleteFinanceBill
     boolean bOOLEAN_1 ;
    if(listOmsBill !=null&& !CollectionUtil.isEmpty(listOmsBill)&& listOmsBill.size()>0 ){
          List<String> listString_1=new ArrayList<>();
  if(listOmsBill!= null&& !CollectionUtil.isEmpty(listOmsBill)&&  listOmsBill !=null&& !CollectionUtil.isEmpty(listOmsBill)){
      listString_1 = listOmsBill.stream().map(item->item.getBillFlowId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:1555743_1
    }

    /*7-1-02批量删资金账单[8514]   */

      bOOLEAN_1 = mOmsBillService.batchDeleteFinanceBill(listString_1)/*vcase invoke 本地 method 方法调用;*/;



           }

DeleteCurrentAndSubContentBillAccountComRespDto retData = new DeleteCurrentAndSubContentBillAccountComRespDto();





return retData;
  }
/**
   * D7执行清空资金来源预算设置(公共)[8532]
   * gen by moon at 2/28/2024, 7:12:13 PM
   */
  @Trace(operationName = "D7执行清空资金来源预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementClearBudgetSourceSetComRespDto implementClearBudgetSourceSetCom(ImplementClearBudgetSourceSetComReqDto reqDto){


      //步骤0: 7-1-07查询目标预算设置列表 - queryTargetBudgetSetList
     List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    QueryTargetBudgetSetListReq queryTargetBudgetSetListReq=new QueryTargetBudgetSetListReq();
  if(reqDto!=null){
      queryTargetBudgetSetListReq.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1560872_1
queryTargetBudgetSetListReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1560875_1
queryTargetBudgetSetListReq.setIsBudgetSeted(reqDto.getIsBudgetSeted());//SimpleFieldAssign//sourceId:1561398_1
queryTargetBudgetSetListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1560878_1
queryTargetBudgetSetListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1560879_1
    }

    /*7-1-07查询目标预算设置列表[8375]   */
    Assert.isNull(queryTargetBudgetSetListReq.getBudgetCycleModeTypeCode(),"D7执行清空资金来源预算设置(公共)-7-1-07查询目标预算设置列表-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getTargetCycleContentId(),"D7执行清空资金来源预算设置(公共)-7-1-07查询目标预算设置列表-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getIsBudgetSeted(),"D7执行清空资金来源预算设置(公共)-7-1-07查询目标预算设置列表-预算是否已设置不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getIsArchive(),"D7执行清空资金来源预算设置(公共)-7-1-07查询目标预算设置列表-是否存档不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getEvaluationTemplateId(),"D7执行清空资金来源预算设置(公共)-7-1-07查询目标预算设置列表-冗余评价模板ID不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetList(queryTargetBudgetSetListReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤1: 7-1-07批量删目标预算设置 - batchDeleteTargetBudgetSet
     boolean bOOLEAN ;
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          List<String> listString=new ArrayList<>();
  if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      listString = listOmsTargetCostset.stream().map(item->item.getTargetCostSetId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:1560880_1
    }

    /*7-1-07批量删目标预算设置[8378]   */

      bOOLEAN = mOmsTargetCostsetService.batchDeleteTargetBudgetSet(listString)/*vcase invoke 本地 method 方法调用;*/;



           }

ImplementClearBudgetSourceSetComRespDto retData = new ImplementClearBudgetSourceSetComRespDto();





return retData;
  }
/**
   * D7获取是否组织正式财务标准(公共)[8543]
   * gen by moon at 3/5/2024, 11:41:58 PM
   */
  @Trace(operationName = "D7获取是否组织正式财务标准(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ObtainIsOrgOfficialAccountNomComRespDto obtainIsOrgOfficialAccountNomCom(ObtainIsOrgOfficialAccountNomComReqDto reqDto){


      ImplementIsOrgOfficialAccountNomAnalyzeComRespDto implementIsOrgOfficialAccountNomAnalyzeComRespDto_1 =null;
//步骤0: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
     QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1563371_1
queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("IS_OPEN_FINANCE");//CUSTOM_CONVENTION//sourceId:1563369_1
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1563378_1

    /*D2查空间开启财务模式配置答案（公共）[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"D7获取是否组织正式财务标准(公共)-D2查空间开启财务模式配置答案（公共）-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"D7获取是否组织正式财务标准(公共)-D2查空间开启财务模式配置答案（公共）-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"D7获取是否组织正式财务标准(公共)-D2查空间开启财务模式配置答案（公共）-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      Assert.isTrue(queryConfItemMatchAnswerDetailComRespDto== null||  queryConfItemMatchAnswerDetailComRespDto.getEndValue() ==null,"找不到数据，系统异常",false);



//步骤1: D7执行是否组织正式财务标准分析(公共) - implementIsOrgOfficialAccountNomAnalyzeCom
     ImplementIsOrgOfficialAccountNomAnalyzeComRespDto implementIsOrgOfficialAccountNomAnalyzeComRespDto = null;
    if(queryConfItemMatchAnswerDetailComRespDto !=null){
          ImplementIsOrgOfficialAccountNomAnalyzeComReqDto implementIsOrgOfficialAccountNomAnalyzeComReqDto=new ImplementIsOrgOfficialAccountNomAnalyzeComReqDto();
  if(queryConfItemMatchAnswerDetailComRespDto!=null){
      implementIsOrgOfficialAccountNomAnalyzeComReqDto.setEndValue(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1563389_1
    }

    /*D7执行是否组织正式财务标准分析(公共)[8047]   */
    Assert.isNull(implementIsOrgOfficialAccountNomAnalyzeComReqDto.getEndValue(),"D7获取是否组织正式财务标准(公共)-D7执行是否组织正式财务标准分析(公共)-空间开启财务模式答案不能为空",false);
      implementIsOrgOfficialAccountNomAnalyzeComRespDto = implementIsOrgOfficialAccountNomAnalyzeCom(implementIsOrgOfficialAccountNomAnalyzeComReqDto)/*vcase invoke 同服务,同domain*/;


      implementIsOrgOfficialAccountNomAnalyzeComRespDto_1 = implementIsOrgOfficialAccountNomAnalyzeComRespDto;
           }

ObtainIsOrgOfficialAccountNomComRespDto retData = new ObtainIsOrgOfficialAccountNomComRespDto();
  if(implementIsOrgOfficialAccountNomAnalyzeComRespDto_1!=null){
      retData.setIsOrgOfficialAccountNom(implementIsOrgOfficialAccountNomAnalyzeComRespDto_1.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1563391_1
    }




return retData;
  }
/**
   * D7刷新全模板财务账户并推Redis(公共)[8410]
   * gen by moon at 5/28/2024, 11:58:53 AM
   */
  @Trace(operationName = "D7刷新全模板财务账户并推Redis(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public BottomUpdateEntityStatisticalAccountComRespDto bottomUpdateEntityStatisticalAccountCom(BottomUpdateEntityStatisticalAccountComReqDto reqDto){


      //virtualUsage 7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌）  62004
      List<OmsAccount> listOmsAccount =new ArrayList<>();
    QueryFinanceAccountListReq queryFinanceAccountListReq=new QueryFinanceAccountListReq();
queryFinanceAccountListReq.setAccountObjectClass("CONTENT_TYPE");//sourceId:1521013_1_62004
queryFinanceAccountListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1521015_1_62004
queryFinanceAccountListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1521016_1_62004
if(reqDto!=null){
      queryFinanceAccountListReq.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1521053_1_62004
    }

    /*7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌）[8419]   */
    Assert.isNull(queryFinanceAccountListReq.getThemeContentId(),"D7刷新全模板财务账户并推Redis(公共)-7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌）-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountObjectClass(),"D7刷新全模板财务账户并推Redis(公共)-7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌）-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSubjectLifeCycle(),"D7刷新全模板财务账户并推Redis(公共)-7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌）-主体生命周期不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSpaceId(),"D7刷新全模板财务账户并推Redis(公共)-7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌）-创建于空间ID不能为空",false);
      listOmsAccount = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq)/*vcase invoke 本地 method 方法调用;*/;



if((listOmsAccount!= null&&  listOmsAccount !=null && listOmsAccount.size()>0)) {
        //if(7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌）.资金账户列表数据集条数 大于 0)  62005

//ModelCode: circulationCollections
        for (OmsAccount circulationCollectionsRes: listOmsAccount){

ImplementSingleCardFundAccountPromotionRedisComRespDto implementSingleCardFundAccountPromotionRedisComRespDto = null;
    ImplementSingleCardFundAccountPromotionRedisComReqDto implementSingleCardFundAccountPromotionRedisComReqDto=new ImplementSingleCardFundAccountPromotionRedisComReqDto();
  if(circulationCollectionsRes!=null){
      implementSingleCardFundAccountPromotionRedisComReqDto.setAccountId(circulationCollectionsRes.getAccountId());//SimpleFieldAssign//sourceId:1567198_1_68436
implementSingleCardFundAccountPromotionRedisComReqDto.setTotalBudgetAmount(circulationCollectionsRes.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1567199_1_68436
implementSingleCardFundAccountPromotionRedisComReqDto.setIsBudgetAccount(circulationCollectionsRes.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1567200_1_68436
implementSingleCardFundAccountPromotionRedisComReqDto.setIsStatisticalAccount(circulationCollectionsRes.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1567201_1_68436
implementSingleCardFundAccountPromotionRedisComReqDto.setIsIncomingAccount(circulationCollectionsRes.getIsIncomingAccount());//SimpleFieldAssign//sourceId:1567202_1_68436
implementSingleCardFundAccountPromotionRedisComReqDto.setAccountContentCode(circulationCollectionsRes.getAccountContentCode());//SimpleFieldAssign//sourceId:1567203_1_68436
    }
if(reqDto!=null){
      implementSingleCardFundAccountPromotionRedisComReqDto.setIsOpenFundsArrival(reqDto.getIsOpenFundsArrival());//SimpleFieldAssign//sourceId:1567206_1_68436
implementSingleCardFundAccountPromotionRedisComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1567204_1_68436
implementSingleCardFundAccountPromotionRedisComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1567207_1_68436
    }

    /*D7执行单张牌资金账户更新(公共)[8553]   */
    Assert.isNull(implementSingleCardFundAccountPromotionRedisComReqDto.getAccountId(),"D7刷新全模板财务账户并推Redis(公共)-D7执行单张牌资金账户更新(公共)-账户ID不能为空",false);
Assert.isNull(implementSingleCardFundAccountPromotionRedisComReqDto.getTotalBudgetAmount(),"D7刷新全模板财务账户并推Redis(公共)-D7执行单张牌资金账户更新(公共)-累计收入金额不能为空",false);
Assert.isNull(implementSingleCardFundAccountPromotionRedisComReqDto.getIsBudgetAccount(),"D7刷新全模板财务账户并推Redis(公共)-D7执行单张牌资金账户更新(公共)-是否预算账户不能为空",false);
Assert.isNull(implementSingleCardFundAccountPromotionRedisComReqDto.getIsStatisticalAccount(),"D7刷新全模板财务账户并推Redis(公共)-D7执行单张牌资金账户更新(公共)-是否统计账户不能为空",false);
Assert.isNull(implementSingleCardFundAccountPromotionRedisComReqDto.getIsOpenFundsArrival(),"D7刷新全模板财务账户并推Redis(公共)-D7执行单张牌资金账户更新(公共)-是否开启资金到账不能为空",false);
Assert.isNull(implementSingleCardFundAccountPromotionRedisComReqDto.getAccountContentCode(),"D7刷新全模板财务账户并推Redis(公共)-D7执行单张牌资金账户更新(公共)-关联归属主体标识不能为空",false);
Assert.isNull(implementSingleCardFundAccountPromotionRedisComReqDto.getThemeContentId(),"D7刷新全模板财务账户并推Redis(公共)-D7执行单张牌资金账户更新(公共)-主题内容ID不能为空",false);
Assert.isNull(implementSingleCardFundAccountPromotionRedisComReqDto.getSpaceId(),"D7刷新全模板财务账户并推Redis(公共)-D7执行单张牌资金账户更新(公共)-创建于空间ID不能为空",false);
      implementSingleCardFundAccountPromotionRedisComRespDto = implementSingleCardFundAccountPromotionRedisCom(implementSingleCardFundAccountPromotionRedisComReqDto)/*vcase invoke 同服务,同domain*/;



AnalysisBudgetFundUsageRateComRespDto analysisBudgetFundUsageRateComRespDto = null;
    if(implementSingleCardFundAccountPromotionRedisComRespDto !=null){
          AnalysisBudgetFundUsageRateComReqDto analysisBudgetFundUsageRateComReqDto=new AnalysisBudgetFundUsageRateComReqDto();
  if(circulationCollectionsRes!=null){
      analysisBudgetFundUsageRateComReqDto.setIsBudgetAccount(circulationCollectionsRes.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1670398_1_65715
    }
if(implementSingleCardFundAccountPromotionRedisComRespDto!=null){
      analysisBudgetFundUsageRateComReqDto.setTotalBudgetAmount(implementSingleCardFundAccountPromotionRedisComRespDto.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1670399_1_65715
analysisBudgetFundUsageRateComReqDto.setAccruedSettledAmount(implementSingleCardFundAccountPromotionRedisComRespDto.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:1670400_1_65715
    }

    /*D7分析预算资金使用率(公共)[8938]   */
    Assert.isNull(analysisBudgetFundUsageRateComReqDto.getIsBudgetAccount(),"D7刷新全模板财务账户并推Redis(公共)-D7分析预算资金使用率(公共)-是否预算账户不能为空",false);
Assert.isNull(analysisBudgetFundUsageRateComReqDto.getTotalBudgetAmount(),"D7刷新全模板财务账户并推Redis(公共)-D7分析预算资金使用率(公共)-累计收入金额不能为空",false);
Assert.isNull(analysisBudgetFundUsageRateComReqDto.getAccruedSettledAmount(),"D7刷新全模板财务账户并推Redis(公共)-D7分析预算资金使用率(公共)-累计支出金额不能为空",false);
      analysisBudgetFundUsageRateComRespDto = analysisBudgetFundUsageRateCom(analysisBudgetFundUsageRateComReqDto)/*vcase invoke 同服务,同domain*/;



           }
ImplementLoopAddPersonPreFinStandardDataSnapshotComRespDto implementLoopAddPersonPreFinStandardDataSnapshotComRespDto = null;
    if(implementSingleCardFundAccountPromotionRedisComRespDto !=null&&analysisBudgetFundUsageRateComRespDto !=null){
          ImplementLoopAddPersonPreFinStandardDataSnapshotComReqDto implementLoopAddPersonPreFinStandardDataSnapshotComReqDto=new ImplementLoopAddPersonPreFinStandardDataSnapshotComReqDto();
  implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setBusinessDataObject("ACCT_STD_DATA_TARGET_CONT_SNAP");//sourceId:1801212_1_68445
if(reqDto!=null){
      implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1801213_1_68445
implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setPreUpdateCycleId(reqDto.getPreUpdateCycleId());//SimpleFieldAssign//sourceId:1801318_1_68445
implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setPreUpdateEvaTargetCycleId(reqDto.getPreUpdateEvaTargetCycleId());//SimpleFieldAssign//sourceId:1801319_1_68445
    }
if(circulationCollectionsRes!=null){
      implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setAccountObjectId(circulationCollectionsRes.getAccountObjectId());//SimpleFieldAssign//sourceId:1801214_1_68445
implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setAccountId(circulationCollectionsRes.getAccountId());//SimpleFieldAssign//sourceId:1801215_1_68445
implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setIsBudgetAccount(circulationCollectionsRes.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1801216_1_68445
    }
if(implementSingleCardFundAccountPromotionRedisComRespDto!=null){
      implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setTotalBudgetAmount(implementSingleCardFundAccountPromotionRedisComRespDto.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1801217_1_68445
implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setAccountActualBalance(implementSingleCardFundAccountPromotionRedisComRespDto.getAccountActualBalance());//SimpleFieldAssign//sourceId:1801218_1_68445
implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setSettlableBalance(implementSingleCardFundAccountPromotionRedisComRespDto.getSettlableBalance());//SimpleFieldAssign//sourceId:1801219_1_68445
implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setUnSettlableBalance(implementSingleCardFundAccountPromotionRedisComRespDto.getUnSettlableBalance());//SimpleFieldAssign//sourceId:1801220_1_68445
implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setAccruedSettledAmount(implementSingleCardFundAccountPromotionRedisComRespDto.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:1801221_1_68445
    }
if(analysisBudgetFundUsageRateComRespDto!=null){
      implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.setFundUsageRate(analysisBudgetFundUsageRateComRespDto.getFundUsageRate());//SimpleFieldAssign//sourceId:1801222_1_68445
    }

    /*D2循环增财务账户标准数据快照个性准备(Redis)[9582]   */
    Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getBusinessDataObject(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-业务数据对象不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getDataObjectBatchCode(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-数据对象批次标识不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getAccountObjectId(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-关联归属主体ID不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getAccountId(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-归属账户ID不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getIsBudgetAccount(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-是否预算账户不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getTotalBudgetAmount(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-累计收入金额不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getAccountActualBalance(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-账户余额不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getSettlableBalance(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-可用金额不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getUnSettlableBalance(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-冻结金额不能为空",false);
Assert.isNull(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto.getAccruedSettledAmount(),"D7刷新全模板财务账户并推Redis(公共)-D2循环增财务账户标准数据快照个性准备(Redis)-累计支出金额不能为空",false);
      implementLoopAddPersonPreFinStandardDataSnapshotComRespDto = fwCompStandardDataClient.implementLoopAddPersonPreFinStandardDataSnapshotCom(implementLoopAddPersonPreFinStandardDataSnapshotComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



      }
//ModelCode: circulationEnd
        }

      }
BottomUpdateEntityStatisticalAccountComRespDto retData = new BottomUpdateEntityStatisticalAccountComRespDto();





return retData;
  }

/**
   * D7执行判断更新到账账户资金金额(公共)[8547]
   * gen by moon at 3/8/2024, 4:11:37 AM
   */
  @Trace(operationName = "D7执行判断更新到账账户资金金额(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementUpdateReceivedAccountAmountComRespDto implementUpdateReceivedAccountAmountCom(ImplementUpdateReceivedAccountAmountComReqDto reqDto){


      //virtualUsage D7查是否相等的预算账户(公共)  62012
      QueryFinanceAccountDetailComRespDto queryFinanceAccountDetailComRespDto = null;
    QueryFinanceAccountDetailComReqDto queryFinanceAccountDetailComReqDto=new QueryFinanceAccountDetailComReqDto();
  queryFinanceAccountDetailComReqDto.setIsBudgetAccount("TRUE");//sourceId:1565032_1_62012
queryFinanceAccountDetailComReqDto.setIsStatisticalAccount("FALSE");//sourceId:1565033_1_62012
queryFinanceAccountDetailComReqDto.setAccountObjectClass("CONTENT_TYPE");//sourceId:1565034_1_62012
queryFinanceAccountDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1565037_1_62012
if(reqDto!=null){
      queryFinanceAccountDetailComReqDto.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1565035_1_62012
queryFinanceAccountDetailComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1566309_1_62012
queryFinanceAccountDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1565038_1_62012
    }

    /*D7查是否相等的预算账户(公共)[7681]   */
    Assert.isNull(queryFinanceAccountDetailComReqDto.getAccountContentCode(),"D7执行判断更新到账账户资金金额(公共)-D7查是否相等的预算账户(公共)-关联归属主体标识不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getIsBudgetAccount(),"D7执行判断更新到账账户资金金额(公共)-D7查是否相等的预算账户(公共)-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getIsStatisticalAccount(),"D7执行判断更新到账账户资金金额(公共)-D7查是否相等的预算账户(公共)-是否统计账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getAccountObjectClass(),"D7执行判断更新到账账户资金金额(公共)-D7查是否相等的预算账户(公共)-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getThemeContentId(),"D7执行判断更新到账账户资金金额(公共)-D7查是否相等的预算账户(公共)-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getSubjectLifeCycle(),"D7执行判断更新到账账户资金金额(公共)-D7查是否相等的预算账户(公共)-主体生命周期不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getSpaceId(),"D7执行判断更新到账账户资金金额(公共)-D7查是否相等的预算账户(公共)-创建于空间ID不能为空",false);
      queryFinanceAccountDetailComRespDto = queryFinanceAccountDetailCom(queryFinanceAccountDetailComReqDto)/*vcase invoke 同服务,同domain*/;



if((queryFinanceAccountDetailComRespDto!= null&& queryFinanceAccountDetailComRespDto.getAccountId() == null )) {
        //if(D7查是否相等的预算账户(公共).账户ID 值等于空 )  62021

ImplementStatSubAcctAndUpdateCurAcctComRespDto implementStatSubAcctAndUpdateCurAcctComRespDto = null;
    ImplementStatSubAcctAndUpdateCurAcctComReqDto implementStatSubAcctAndUpdateCurAcctComReqDto=new ImplementStatSubAcctAndUpdateCurAcctComReqDto();
  implementStatSubAcctAndUpdateCurAcctComReqDto.setIsBudgetAccount("FALSE");//sourceId:1566298_1_62096
if(reqDto!=null){
      implementStatSubAcctAndUpdateCurAcctComReqDto.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1566300_1_62096
implementStatSubAcctAndUpdateCurAcctComReqDto.setParentAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1566296_1_62096
implementStatSubAcctAndUpdateCurAcctComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1566306_1_62096
implementStatSubAcctAndUpdateCurAcctComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1566297_1_62096
    }

    /*D7执行统计下级并更新当前账户(公共)[8549]   */
    Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getAccountId(),"D7执行判断更新到账账户资金金额(公共)-D7执行统计下级并更新当前账户(公共)-当前账户ID不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getParentAccountContentCode(),"D7执行判断更新到账账户资金金额(公共)-D7执行统计下级并更新当前账户(公共)-上级账户归属主体标识不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getIsBudgetAccount(),"D7执行判断更新到账账户资金金额(公共)-D7执行统计下级并更新当前账户(公共)-是否预算账户不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getThemeContentId(),"D7执行判断更新到账账户资金金额(公共)-D7执行统计下级并更新当前账户(公共)-主题内容ID不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getSpaceId(),"D7执行判断更新到账账户资金金额(公共)-D7执行统计下级并更新当前账户(公共)-创建于空间ID不能为空",false);
      implementStatSubAcctAndUpdateCurAcctComRespDto = implementStatSubAcctAndUpdateCurAcctCom(implementStatSubAcctAndUpdateCurAcctComReqDto)/*vcase invoke 同服务,同domain*/;



      }
ImplementUpdateReceivedAccountAmountComRespDto retData = new ImplementUpdateReceivedAccountAmountComRespDto();





return retData;
  }
/**
   * D7执行资金账户加减(公共)[8548]
   * gen by moon at 5/27/2024, 1:20:23 PM
   */
  @Trace(operationName = "D7执行资金账户加减(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementFinanceAccountAddAndSubtractComRespDto implementFinanceAccountAddAndSubtractCom(ImplementFinanceAccountAddAndSubtractComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getBillTypeCode() !=null && reqDto.getBillTypeCode().equals("INCOME"))) {
        //if(D7执行资金账户加减(公共).收支类型 等于 收入)  62030

boolean bOOLEAN ;
    OmsAccount omsAccount=new OmsAccount();
  if(reqDto!=null){
      omsAccount.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1565717_1_62037
omsAccount.setAccountActualBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1565879_1_62037
    }

    /*7-1-01账户余额自动加[7688]   */
    Assert.isNull(omsAccount.getAccountId(),"D7执行资金账户加减(公共)-7-1-01账户余额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount.getAccountActualBalance(),"D7执行资金账户加减(公共)-7-1-01账户余额自动加-账户余额不能为空",false);
      bOOLEAN = mOmsAccountService.updateAutoAddAccount(omsAccount)/*vcase invoke 本地 method 方法调用;*/;



boolean bOOLEAN_1 ;
    OmsAccount omsAccount_1=new OmsAccount();
  if(reqDto!=null){
      omsAccount_1.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1565718_1_62038
omsAccount_1.setSettlableBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1565880_1_62038
    }

    /*7-1-01账户可用金额自动加[7688]   */
    Assert.isNull(omsAccount_1.getAccountId(),"D7执行资金账户加减(公共)-7-1-01账户可用金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_1.getSettlableBalance(),"D7执行资金账户加减(公共)-7-1-01账户可用金额自动加-可用金额不能为空",false);
      bOOLEAN_1 = mOmsAccountService.updateAutoAddAccount(omsAccount_1)/*vcase invoke 本地 method 方法调用;*/;



boolean bOOLEAN_2 ;
    OmsAccount omsAccount_2=new OmsAccount();
  if(reqDto!=null){
      omsAccount_2.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1565716_1_69188
omsAccount_2.setTotalBudgetAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1565882_1_69188
    }

    /*7-1-01账户总金额自动加[7688]   */
    Assert.isNull(omsAccount_2.getAccountId(),"D7执行资金账户加减(公共)-7-1-01账户总金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_2.getTotalBudgetAmount(),"D7执行资金账户加减(公共)-7-1-01账户总金额自动加-累计收入金额不能为空",false);
      bOOLEAN_2 = mOmsAccountService.updateAutoAddAccount(omsAccount_2)/*vcase invoke 本地 method 方法调用;*/;



      }
else if((reqDto!= null&&  reqDto.getBillTypeCode() !=null && reqDto.getBillTypeCode().equals("SPENDING"))){
       //elseif(D7执行资金账户加减(公共).收支类型 等于 支出)  62033

boolean bOOLEAN_3 ;
    OmsAccount omsAccount_3=new OmsAccount();
  if(reqDto!=null){
      omsAccount_3.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1565719_1_62040
omsAccount_3.setAccountActualBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1565902_1_62040
    }

    /*7-1-01-预算账户余额自动减[7689]   */
    Assert.isNull(omsAccount_3.getAccountId(),"D7执行资金账户加减(公共)-7-1-01-预算账户余额自动减-账户ID不能为空",false);
Assert.isNull(omsAccount_3.getAccountActualBalance(),"D7执行资金账户加减(公共)-7-1-01-预算账户余额自动减-账户余额不能为空",false);
      bOOLEAN_3 = mOmsAccountService.updateAutoSubAccount(omsAccount_3)/*vcase invoke 本地 method 方法调用;*/;



boolean bOOLEAN_4 ;
    OmsAccount omsAccount_4=new OmsAccount();
  if(reqDto!=null){
      omsAccount_4.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1565720_1_62041
omsAccount_4.setSettlableBalance(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1565903_1_62041
    }

    /*7-1-01账户可用金额自动减[7689]   */
    Assert.isNull(omsAccount_4.getAccountId(),"D7执行资金账户加减(公共)-7-1-01账户可用金额自动减-账户ID不能为空",false);
      bOOLEAN_4 = mOmsAccountService.updateAutoSubAccount(omsAccount_4)/*vcase invoke 本地 method 方法调用;*/;



boolean bOOLEAN_5 ;
    OmsAccount omsAccount_5=new OmsAccount();
  if(reqDto!=null){
      omsAccount_5.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1565753_1_69189
omsAccount_5.setAccruedSettledAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1565907_1_69189
    }

    /*7-1-01-账户累计支出金额自动加[7689]   */
    Assert.isNull(omsAccount_5.getAccountId(),"D7执行资金账户加减(公共)-7-1-01-账户累计支出金额自动加-账户ID不能为空",false);
Assert.isNull(omsAccount_5.getAccruedSettledAmount(),"D7执行资金账户加减(公共)-7-1-01-账户累计支出金额自动加-累计支出金额不能为空",false);
      bOOLEAN_5 = mOmsAccountService.updateAutoSubAccount(omsAccount_5)/*vcase invoke 本地 method 方法调用;*/;



    }
ImplementFinanceAccountAddAndSubtractComRespDto retData = new ImplementFinanceAccountAddAndSubtractComRespDto();





return retData;
  }
/**
   * D7执行统计下级并更新当前账户(公共)[8549]
   * gen by moon at 5/19/2024, 2:41:07 PM
   */
  @Trace(operationName = "D7执行统计下级并更新当前账户(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementStatSubAcctAndUpdateCurAcctComRespDto implementStatSubAcctAndUpdateCurAcctCom(ImplementStatSubAcctAndUpdateCurAcctComReqDto reqDto){


      ImplementReceiveFieldInputRespDto receptionServiceRes_1 =null;
//virtualUsage 7-1-01查下级账户列表（用于统计当前层级账户金额）  62049
      List<OmsAccount> listOmsAccount =new ArrayList<>();
    QueryFinanceAccountListReq queryFinanceAccountListReq=new QueryFinanceAccountListReq();
  queryFinanceAccountListReq.setAccountObjectClass("CONTENT_TYPE");//sourceId:1565892_1_62049
queryFinanceAccountListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1565894_1_62049
if(reqDto!=null){
      queryFinanceAccountListReq.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1565897_1_62049
queryFinanceAccountListReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1565890_1_62049
queryFinanceAccountListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1566257_1_62049
    }

    /*7-1-01查下级账户列表（用于统计当前层级账户金额）[8419]   */
    Assert.isNull(queryFinanceAccountListReq.getParentAccountContentCode(),"D7执行统计下级并更新当前账户(公共)-7-1-01查下级账户列表（用于统计当前层级账户金额）-上级账户归属主体标识不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getIsBudgetAccount(),"D7执行统计下级并更新当前账户(公共)-7-1-01查下级账户列表（用于统计当前层级账户金额）-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getThemeContentId(),"D7执行统计下级并更新当前账户(公共)-7-1-01查下级账户列表（用于统计当前层级账户金额）-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountObjectClass(),"D7执行统计下级并更新当前账户(公共)-7-1-01查下级账户列表（用于统计当前层级账户金额）-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSubjectLifeCycle(),"D7执行统计下级并更新当前账户(公共)-7-1-01查下级账户列表（用于统计当前层级账户金额）-主体生命周期不能为空",false);
      listOmsAccount = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq)/*vcase invoke 本地 method 方法调用;*/;



if((listOmsAccount!= null&&  listOmsAccount !=null && listOmsAccount.size()>0)) {
        //if(7-1-01查下级账户列表（用于统计当前层级账户金额）.资金账户列表数据集条数 大于 0)  62050

CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:306469_2_62051
elm.setCalcPara1(item.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:306470_2_62051
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1565910_1_62051
    }

    /*D4统计下级账户金额之和[3375]   */

      calculateSumOfMultipleNumServiceComRespDto = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_2 = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_1=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto_1.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:306469_2_62059
elm.setCalcPara1(item.getAccountActualBalance());//SimpleFieldAssign//sourceId:306470_2_62059
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1565910_1_62059
    }

    /*D4统计下级账户金额之和[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_2 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_3 = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_2=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto_2.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:306469_2_62060
elm.setCalcPara1(item.getSettlableBalance());//SimpleFieldAssign//sourceId:306470_2_62060
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1565910_1_62060
    }

    /*D4统计下级账户金额之和[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_3 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_4 = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_3=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto_3.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:306469_2_62061
elm.setCalcPara1(item.getUnSettlableBalance());//SimpleFieldAssign//sourceId:306470_2_62061
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1565910_1_62061
    }

    /*D4统计下级账户金额之和[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_4 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_3).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto_5 = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto_4=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto_4.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:306469_2_62062
elm.setCalcPara1(item.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:306470_2_62062
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1565910_1_62062
    }

    /*D4统计下级账户金额之和[3375]   */

      calculateSumOfMultipleNumServiceComRespDto_5 = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto_4).getData()/*vcase invoke 跨dubbo调用;*/;



           }
boolean bOOLEAN ;
    if(calculateSumOfMultipleNumServiceComRespDto !=null&&calculateSumOfMultipleNumServiceComRespDto_2 !=null&&calculateSumOfMultipleNumServiceComRespDto_3 !=null&&calculateSumOfMultipleNumServiceComRespDto_4 !=null&&calculateSumOfMultipleNumServiceComRespDto_5 !=null){
          OmsAccount omsAccount=new OmsAccount();
  omsAccount.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1565937_1_62056
omsAccount.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1565938_1_62056
if(reqDto!=null){
      omsAccount.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1565930_1_62056
    }
if(calculateSumOfMultipleNumServiceComRespDto!=null){
      omsAccount.setTotalBudgetAmount(calculateSumOfMultipleNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1565932_1_62056
    }
if(calculateSumOfMultipleNumServiceComRespDto_2!=null){
      omsAccount.setAccountActualBalance(calculateSumOfMultipleNumServiceComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1565933_1_62056
    }
if(calculateSumOfMultipleNumServiceComRespDto_3!=null){
      omsAccount.setSettlableBalance(calculateSumOfMultipleNumServiceComRespDto_3.getCalcResult());//SimpleFieldAssign//sourceId:1565934_1_62056
    }
if(calculateSumOfMultipleNumServiceComRespDto_4!=null){
      omsAccount.setUnSettlableBalance(calculateSumOfMultipleNumServiceComRespDto_4.getCalcResult());//SimpleFieldAssign//sourceId:1565935_1_62056
    }
if(calculateSumOfMultipleNumServiceComRespDto_5!=null){
      omsAccount.setAccruedSettledAmount(calculateSumOfMultipleNumServiceComRespDto_5.getCalcResult());//SimpleFieldAssign//sourceId:1565936_1_62056
    }

    /*7-1-01修改资金账户[8368]   */
    Assert.isNull(omsAccount.getAccountId(),"D7执行统计下级并更新当前账户(公共)-7-1-01修改资金账户-账户ID不能为空",false);
Assert.isNull(omsAccount.getTotalBudgetAmount(),"D7执行统计下级并更新当前账户(公共)-7-1-01修改资金账户-累计收入金额不能为空",false);
Assert.isNull(omsAccount.getAccountActualBalance(),"D7执行统计下级并更新当前账户(公共)-7-1-01修改资金账户-账户余额不能为空",false);
Assert.isNull(omsAccount.getSettlableBalance(),"D7执行统计下级并更新当前账户(公共)-7-1-01修改资金账户-可用金额不能为空",false);
Assert.isNull(omsAccount.getUnSettlableBalance(),"D7执行统计下级并更新当前账户(公共)-7-1-01修改资金账户-冻结金额不能为空",false);
Assert.isNull(omsAccount.getAccruedSettledAmount(),"D7执行统计下级并更新当前账户(公共)-7-1-01修改资金账户-累计支出金额不能为空",false);
Assert.isNull(omsAccount.getOperationInductionId(),"D7执行统计下级并更新当前账户(公共)-7-1-01修改资金账户-操作人就职记录ID不能为空",false);
Assert.isNull(omsAccount.getOperateTime(),"D7执行统计下级并更新当前账户(公共)-7-1-01修改资金账户-操作时间不能为空",false);
      bOOLEAN = mOmsAccountService.updateFinanceAccount(omsAccount)/*vcase invoke 本地 method 方法调用;*/;



           }
//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    if(calculateSumOfMultipleNumServiceComRespDto !=null&&calculateSumOfMultipleNumServiceComRespDto_2 !=null&&calculateSumOfMultipleNumServiceComRespDto_3 !=null&&calculateSumOfMultipleNumServiceComRespDto_4 !=null&&calculateSumOfMultipleNumServiceComRespDto_5 !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(calculateSumOfMultipleNumServiceComRespDto!=null){
      receptionServiceReq.setTotalBudgetAmount(calculateSumOfMultipleNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1566152_1_62058
    }
if(calculateSumOfMultipleNumServiceComRespDto_2!=null){
      receptionServiceReq.setAccountActualBalance(calculateSumOfMultipleNumServiceComRespDto_2.getCalcResult());//SimpleFieldAssign//sourceId:1566153_1_62058
    }
if(calculateSumOfMultipleNumServiceComRespDto_3!=null){
      receptionServiceReq.setSettlableBalance(calculateSumOfMultipleNumServiceComRespDto_3.getCalcResult());//SimpleFieldAssign//sourceId:1566154_1_62058
    }
if(calculateSumOfMultipleNumServiceComRespDto_4!=null){
      receptionServiceReq.setUnSettlableBalance(calculateSumOfMultipleNumServiceComRespDto_4.getCalcResult());//SimpleFieldAssign//sourceId:1566155_1_62058
    }
if(calculateSumOfMultipleNumServiceComRespDto_5!=null){
      receptionServiceReq.setAccruedSettledAmount(calculateSumOfMultipleNumServiceComRespDto_5.getCalcResult());//SimpleFieldAssign//sourceId:1566156_1_62058
    }

    /*M7接收当前账户金额出参[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getTotalBudgetAmount(),"D7执行统计下级并更新当前账户(公共)-M7接收当前账户金额出参-累计收入金额不能为空",false);
Assert.isNull(receptionServiceReq.getAccountActualBalance(),"D7执行统计下级并更新当前账户(公共)-M7接收当前账户金额出参-账户余额不能为空",false);
Assert.isNull(receptionServiceReq.getSettlableBalance(),"D7执行统计下级并更新当前账户(公共)-M7接收当前账户金额出参-可用金额不能为空",false);
Assert.isNull(receptionServiceReq.getUnSettlableBalance(),"D7执行统计下级并更新当前账户(公共)-M7接收当前账户金额出参-冻结金额不能为空",false);
Assert.isNull(receptionServiceReq.getAccruedSettledAmount(),"D7执行统计下级并更新当前账户(公共)-M7接收当前账户金额出参-累计支出金额不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }
      }
else{
       //else  62092

//异常结束 62093
      throw new BizException("CC10000428","对不起，找不到下级账户数据~",false);
    }
ImplementStatSubAcctAndUpdateCurAcctComRespDto retData = new ImplementStatSubAcctAndUpdateCurAcctComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setTotalBudgetAmount(receptionServiceRes_1.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1566157_1
retData.setAccountActualBalance(receptionServiceRes_1.getAccountActualBalance());//SimpleFieldAssign//sourceId:1566158_1
retData.setSettlableBalance(receptionServiceRes_1.getSettlableBalance());//SimpleFieldAssign//sourceId:1566159_1
retData.setUnSettlableBalance(receptionServiceRes_1.getUnSettlableBalance());//SimpleFieldAssign//sourceId:1566160_1
retData.setAccruedSettledAmount(receptionServiceRes_1.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:1566161_1
    }




return retData;
  }
/**
   * D7新增资金账单(公共)[8550]
   * gen by moon at 3/8/2024, 3:48:25 AM
   */
  @Trace(operationName = "D7新增资金账单(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddFinanceBillComRespDto addFinanceBillCom(AddFinanceBillComReqDto reqDto){


      String string_1 =null;
//步骤0: 7-1-01-查询资金账户详情 - queryFinanceAccountDetailCom
     OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  queryFinanceAccountDetailComReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1567145_1
if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountId(reqDto.getBillAccountId());//SimpleFieldAssign//sourceId:1567144_1
queryFinanceAccountDetailComReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1567146_1
    }

    /*7-1-01-查询资金账户详情[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountId(),"D7新增资金账单(公共)-7-1-01-查询资金账户详情-账户ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSubjectLifeCycle(),"D7新增资金账单(公共)-7-1-01-查询资金账户详情-主体生命周期不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSpaceId(),"D7新增资金账单(公共)-7-1-01-查询资金账户详情-创建于空间ID不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤1: 7-1-02新增资金账单 - addFinanceBill
     String string = null;
    if(omsAccount !=null){
          OmsBill omsBill=new OmsBill();
  if(reqDto!=null){
      omsBill.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1565941_1
omsBill.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1565943_1
omsBill.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1565944_1
omsBill.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1565945_1
omsBill.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1565947_1
omsBill.setBillAccountId(reqDto.getBillAccountId());//SimpleFieldAssign//sourceId:1565948_1
omsBill.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1565952_1
omsBill.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1565953_1
omsBill.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1565954_1
omsBill.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1565955_1
omsBill.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1565956_1
omsBill.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1565957_1
omsBill.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1565958_1
omsBill.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1565959_1
omsBill.setOppositeOpeningBankName(reqDto.getOppositeOpeningBankName());//SimpleFieldAssign//sourceId:1565960_1
omsBill.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1565961_1
omsBill.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1565962_1
omsBill.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1565963_1
omsBill.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1565964_1
omsBill.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1565965_1
omsBill.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1565966_1
omsBill.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1565942_1
omsBill.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1565975_1
omsBill.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1565976_1
omsBill.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1565946_1
omsBill.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1565971_1
omsBill.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1565972_1
omsBill.setAppId(reqDto.getAppId());//SimpleFieldAssign//sourceId:1565973_1
    }
if(omsAccount!=null){
      omsBill.setBillAccountBalance(omsAccount.getAccountActualBalance());//SimpleFieldAssign//sourceId:1565949_1
omsBill.setBillObjectId(omsAccount.getAccountObjectId());//SimpleFieldAssign//sourceId:1565950_1
omsBill.setBillObjectTypeCode(omsAccount.getAccountObjectTypeCode());//SimpleFieldAssign//sourceId:1565951_1
omsBill.setEcologicalAccountTypeCode(omsAccount.getEcologicalAccountTypeCode());//SimpleFieldAssign//sourceId:1565967_1
omsBill.setDistributionSystemTypeCode(omsAccount.getDistributionSystemTypeCode());//SimpleFieldAssign//sourceId:1565968_1
omsBill.setIsOrgOfficialAccountNom(omsAccount.getIsOrgOfficialAccountNom());//SimpleFieldAssign//sourceId:1565969_1
omsBill.setDistributionAccountId(omsAccount.getDistributionAccountId());//SimpleFieldAssign//sourceId:1565970_1
    }

    /*7-1-02新增资金账单[7693]   */
    Assert.isNull(omsBill.getBillAmount(),"D7新增资金账单(公共)-7-1-02新增资金账单-账单金额不能为空",false);
Assert.isNull(omsBill.getBillTypeCode(),"D7新增资金账单(公共)-7-1-02新增资金账单-收支类型不能为空",false);
Assert.isNull(omsBill.getIsOriginBill(),"D7新增资金账单(公共)-7-1-02新增资金账单-是否发生方账单不能为空",false);
Assert.isNull(omsBill.getIsButtFinance(),"D7新增资金账单(公共)-7-1-02新增资金账单-是否对接财务不能为空",false);
Assert.isNull(omsBill.getBillBizStory(),"D7新增资金账单(公共)-7-1-02新增资金账单-流水业务故事信息不能为空",false);
Assert.isNull(omsBill.getBillAccountId(),"D7新增资金账单(公共)-7-1-02新增资金账单-账单归属账户ID不能为空",false);
Assert.isNull(omsBill.getBillAccountBalance(),"D7新增资金账单(公共)-7-1-02新增资金账单-账单归属账户余额不能为空",false);
Assert.isNull(omsBill.getBillObjectId(),"D7新增资金账单(公共)-7-1-02新增资金账单-账单归属账户主体ID不能为空",false);
Assert.isNull(omsBill.getBillObjectTypeCode(),"D7新增资金账单(公共)-7-1-02新增资金账单-账单归属账户主体类型编码不能为空",false);
Assert.isNull(omsBill.getBillMethod(),"D7新增资金账单(公共)-7-1-02新增资金账单-收支方式不能为空",false);
Assert.isNull(omsBill.getBillStatus(),"D7新增资金账单(公共)-7-1-02新增资金账单-账单状态不能为空",false);
Assert.isNull(omsBill.getEcologicalAccountTypeCode(),"D7新增资金账单(公共)-7-1-02新增资金账单-生态账户类型编码不能为空",false);
Assert.isNull(omsBill.getDistributionSystemTypeCode(),"D7新增资金账单(公共)-7-1-02新增资金账单-冗余发行体系类型编码不能为空",false);
Assert.isNull(omsBill.getIsOrgOfficialAccountNom(),"D7新增资金账单(公共)-7-1-02新增资金账单-是否组织正式财务标准不能为空",false);
Assert.isNull(omsBill.getSpaceId(),"D7新增资金账单(公共)-7-1-02新增资金账单-创建于空间ID不能为空",false);
Assert.isNull(omsBill.getAppId(),"D7新增资金账单(公共)-7-1-02新增资金账单-创建于联盟应用ID不能为空",false);
      string = mOmsBillService.addFinanceBill(omsBill)/*vcase invoke 本地 method 方法调用;*/;


      string_1 = string;
           }

AddFinanceBillComRespDto retData = new AddFinanceBillComRespDto();
  if(string_1!=null){
      retData.setBillFlowId(string_1);//SimpleFieldAssign//sourceId:1566012_1
    }




return retData;
  }
/**
   * D7执行账户账单处理(公共)[8551]
   * gen by moon at 5/27/2024, 1:20:32 PM
   */
  @Trace(operationName = "D7执行账户账单处理(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementBillAndAccountComRespDto implementBillAndAccountCom(ImplementBillAndAccountComReqDto reqDto){


      //步骤0: D7执行资金账户加减(公共) - implementFinanceAccountAddAndSubtractCom
     ImplementFinanceAccountAddAndSubtractComRespDto implementFinanceAccountAddAndSubtractComRespDto = null;
    ImplementFinanceAccountAddAndSubtractComReqDto implementFinanceAccountAddAndSubtractComReqDto=new ImplementFinanceAccountAddAndSubtractComReqDto();
  if(reqDto!=null){
implementFinanceAccountAddAndSubtractComReqDto.setAccountId(reqDto.getBillAccountId());//SimpleFieldAssign//sourceId:1566170_1
implementFinanceAccountAddAndSubtractComReqDto.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1566171_1
implementFinanceAccountAddAndSubtractComReqDto.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566172_1
    }

    /*D7执行资金账户加减(公共)[8548]   */
Assert.isNull(implementFinanceAccountAddAndSubtractComReqDto.getAccountId(),"D7执行账户账单处理(公共)-D7执行资金账户加减(公共)-账户ID不能为空",false);
Assert.isNull(implementFinanceAccountAddAndSubtractComReqDto.getBillTypeCode(),"D7执行账户账单处理(公共)-D7执行资金账户加减(公共)-收支类型不能为空",false);
Assert.isNull(implementFinanceAccountAddAndSubtractComReqDto.getBillAmount(),"D7执行账户账单处理(公共)-D7执行资金账户加减(公共)-账单金额不能为空",false);
      implementFinanceAccountAddAndSubtractComRespDto = implementFinanceAccountAddAndSubtractCom(implementFinanceAccountAddAndSubtractComReqDto)/*vcase invoke 同服务,同domain*/;




//步骤1: D7新增资金账单(公共) - addFinanceBillCom
     AddFinanceBillComRespDto addFinanceBillComRespDto = null;
    AddFinanceBillComReqDto addFinanceBillComReqDto=new AddFinanceBillComReqDto();
  addFinanceBillComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1566207_1
addFinanceBillComReqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1566208_1
if(reqDto!=null){
      addFinanceBillComReqDto.setBillAmount(reqDto.getBillAmount());//SimpleFieldAssign//sourceId:1566174_1
addFinanceBillComReqDto.setBillTypeCode(reqDto.getBillTypeCode());//SimpleFieldAssign//sourceId:1566175_1
addFinanceBillComReqDto.setIsOriginBill(reqDto.getIsOriginBill());//SimpleFieldAssign//sourceId:1566176_1
addFinanceBillComReqDto.setIsButtFinance(reqDto.getIsButtFinance());//SimpleFieldAssign//sourceId:1566177_1
addFinanceBillComReqDto.setBillBizStory(reqDto.getBillBizStory());//SimpleFieldAssign//sourceId:1566178_1
addFinanceBillComReqDto.setBillAccountId(reqDto.getBillAccountId());//SimpleFieldAssign//sourceId:1566179_1
addFinanceBillComReqDto.setOppositeAccountId(reqDto.getOppositeAccountId());//SimpleFieldAssign//sourceId:1566183_1
addFinanceBillComReqDto.setOppositeAccountBalance(reqDto.getOppositeAccountBalance());//SimpleFieldAssign//sourceId:1566184_1
addFinanceBillComReqDto.setOppositeObjectId(reqDto.getOppositeObjectId());//SimpleFieldAssign//sourceId:1566185_1
addFinanceBillComReqDto.setOppositeObjectTypeCode(reqDto.getOppositeObjectTypeCode());//SimpleFieldAssign//sourceId:1566186_1
addFinanceBillComReqDto.setOppositeLogo(reqDto.getOppositeLogo());//SimpleFieldAssign//sourceId:1566187_1
addFinanceBillComReqDto.setOppositeName(reqDto.getOppositeName());//SimpleFieldAssign//sourceId:1566188_1
addFinanceBillComReqDto.setOppositeAccountCode(reqDto.getOppositeAccountCode());//SimpleFieldAssign//sourceId:1566189_1
addFinanceBillComReqDto.setOppositeAccountName(reqDto.getOppositeAccountName());//SimpleFieldAssign//sourceId:1566190_1
addFinanceBillComReqDto.setOppositeOpeningBankName(reqDto.getOppositeOpeningBankName());//SimpleFieldAssign//sourceId:1566191_1
addFinanceBillComReqDto.setBillMethod(reqDto.getBillMethod());//SimpleFieldAssign//sourceId:1566192_1
addFinanceBillComReqDto.setPayChannel(reqDto.getPayChannel());//SimpleFieldAssign//sourceId:1566193_1
addFinanceBillComReqDto.setPayChannelOrderNo(reqDto.getPayChannelOrderNo());//SimpleFieldAssign//sourceId:1566194_1
addFinanceBillComReqDto.setBizBillObjectId(reqDto.getBizBillObjectId());//SimpleFieldAssign//sourceId:1566195_1
addFinanceBillComReqDto.setBizBillObjectTypeCode(reqDto.getBizBillObjectTypeCode());//SimpleFieldAssign//sourceId:1566196_1
addFinanceBillComReqDto.setBillStatus(reqDto.getBillStatus());//SimpleFieldAssign//sourceId:1566197_1
addFinanceBillComReqDto.setAccountSubjectTypeCode(reqDto.getAccountSubjectTypeCode());//SimpleFieldAssign//sourceId:1566202_1
addFinanceBillComReqDto.setAccountSubjectId(reqDto.getAccountSubjectId());//SimpleFieldAssign//sourceId:1566203_1
addFinanceBillComReqDto.setContnetAccountSubjectld(reqDto.getContnetAccountSubjectld());//SimpleFieldAssign//sourceId:1566204_1
addFinanceBillComReqDto.setCapitalSourceId(reqDto.getCapitalSourceId());//SimpleFieldAssign//sourceId:1566205_1
addFinanceBillComReqDto.setExpensesSettleEngineId(reqDto.getExpensesSettleEngineId());//SimpleFieldAssign//sourceId:1566206_1
    }

    /*D7新增资金账单(公共)[8550]   */
    Assert.isNull(addFinanceBillComReqDto.getBillAmount(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-账单金额不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getBillTypeCode(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-收支类型不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getIsOriginBill(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-是否发生方账单不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getIsButtFinance(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-是否对接财务不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getBillBizStory(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-流水业务故事信息不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getBillAccountId(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-账单归属账户ID不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getBillMethod(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-收支方式不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getBillStatus(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-账单状态不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getSpaceId(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-创建于空间ID不能为空",false);
Assert.isNull(addFinanceBillComReqDto.getAppId(),"D7执行账户账单处理(公共)-D7新增资金账单(公共)-创建于联盟应用ID不能为空",false);
      addFinanceBillComRespDto = addFinanceBillCom(addFinanceBillComReqDto)/*vcase invoke 同服务,同domain*/;




ImplementBillAndAccountComRespDto retData = new ImplementBillAndAccountComRespDto();





return retData;
  }
/**
   * D7执行统计下级并更新当前实体统计账户(公共)[8552]
   * gen by moon at 3/8/2024, 3:48:58 AM
   */
  @Trace(operationName = "D7执行统计下级并更新当前实体统计账户(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementStatSubAcctAndUpdateCurEntityAcctComRespDto implementStatSubAcctAndUpdateCurEntityAcctCom(ImplementStatSubAcctAndUpdateCurEntityAcctComReqDto reqDto){


      ImplementReceiveFieldInputRespDto receptionServiceRes_1 =null;
//virtualUsage 7-1-01查下级账户列表（用于统计账户累计结算金额）  62073
      List<OmsAccount> listOmsAccount =new ArrayList<>();
    QueryFinanceAccountListReq queryFinanceAccountListReq=new QueryFinanceAccountListReq();
  queryFinanceAccountListReq.setAccountObjectClass("CONTENT_TYPE");//sourceId:1566540_1_62073
queryFinanceAccountListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1566499_1_62073
if(reqDto!=null){
      queryFinanceAccountListReq.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1566502_1_62073
queryFinanceAccountListReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1566495_1_62073
queryFinanceAccountListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1566501_1_62073
    }

    /*7-1-01查下级账户列表（用于统计账户累计结算金额）[8419]   */
    Assert.isNull(queryFinanceAccountListReq.getParentAccountContentCode(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01查下级账户列表（用于统计账户累计结算金额）-上级账户归属主体标识不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getIsBudgetAccount(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01查下级账户列表（用于统计账户累计结算金额）-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getThemeContentId(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01查下级账户列表（用于统计账户累计结算金额）-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountObjectClass(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01查下级账户列表（用于统计账户累计结算金额）-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSubjectLifeCycle(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01查下级账户列表（用于统计账户累计结算金额）-主体生命周期不能为空",false);
      listOmsAccount = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq)/*vcase invoke 本地 method 方法调用;*/;



if((listOmsAccount!= null&&  listOmsAccount !=null && listOmsAccount.size()>0)) {
        //if(7-1-01查下级账户列表（用于统计账户累计结算金额）.资金账户列表数据集条数 大于 0)  62075

CalculateSumOfMultipleNumServiceComRespDto calculateSumOfMultipleNumServiceComRespDto = null;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          CalculateSumOfMultipleNumServiceComReqDto calculateSumOfMultipleNumServiceComReqDto=new CalculateSumOfMultipleNumServiceComReqDto();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      calculateSumOfMultipleNumServiceComReqDto.setSumOfMultipleNumList(//objList-to-objLists
        listOmsAccount.stream().map(item -> {
      SumOfMultipleNumDto elm = new SumOfMultipleNumDto();
      elm.setCommPrimaryKey(item.getAccountId());//SimpleFieldAssign//sourceId:306536_2_62076
elm.setCalcPara1(item.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:306537_2_62076
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1566541_1_62076
    }

    /*D4统计下级账户累计结算金额之和[3375]   */

      calculateSumOfMultipleNumServiceComRespDto = fwCalcCalculationRulesClient.calculateSumOfMultipleNumServiceCom(calculateSumOfMultipleNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
CalculateSubtractionOfTwoNumServiceComRespDto calculateSubtractionOfTwoNumServiceComRespDto = null;
    if(calculateSumOfMultipleNumServiceComRespDto !=null){
          CalculateSubtractionOfTwoNumServiceComReqDto calculateSubtractionOfTwoNumServiceComReqDto=new CalculateSubtractionOfTwoNumServiceComReqDto();
  if(reqDto!=null){
      calculateSubtractionOfTwoNumServiceComReqDto.setCalcPara1(reqDto.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1566588_1_62079
    }
if(calculateSumOfMultipleNumServiceComRespDto!=null){
      calculateSubtractionOfTwoNumServiceComReqDto.setCalcPara2(calculateSumOfMultipleNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1566589_1_62079
    }

    /*D4-计算两个数相减服务(公共)[3365]   */
    Assert.isNull(calculateSubtractionOfTwoNumServiceComReqDto.getCalcPara1(),"D7执行统计下级并更新当前实体统计账户(公共)-D4-计算两个数相减服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateSubtractionOfTwoNumServiceComReqDto.getCalcPara2(),"D7执行统计下级并更新当前实体统计账户(公共)-D4-计算两个数相减服务(公共)-计算入参2不能为空",false);
      calculateSubtractionOfTwoNumServiceComRespDto = fwCalcCalculationRulesClient.calculateSubtractionOfTwoNumServiceCom(calculateSubtractionOfTwoNumServiceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
boolean bOOLEAN ;
    if(calculateSubtractionOfTwoNumServiceComRespDto !=null&&calculateSumOfMultipleNumServiceComRespDto !=null){
          OmsAccount omsAccount=new OmsAccount();
  omsAccount.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1566552_1_62077
omsAccount.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1566553_1_62077
if(reqDto!=null){
      omsAccount.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1566545_1_62077
    }
if(calculateSubtractionOfTwoNumServiceComRespDto!=null){
      omsAccount.setAccountActualBalance(calculateSubtractionOfTwoNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1566548_1_62077
omsAccount.setSettlableBalance(calculateSubtractionOfTwoNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1566549_1_62077
    }
if(calculateSumOfMultipleNumServiceComRespDto!=null){
      omsAccount.setAccruedSettledAmount(calculateSumOfMultipleNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1566551_1_62077
    }

    /*7-1-01修改资金账户[8368]   */
    Assert.isNull(omsAccount.getAccountId(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01修改资金账户-账户ID不能为空",false);
Assert.isNull(omsAccount.getAccountActualBalance(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01修改资金账户-账户余额不能为空",false);
Assert.isNull(omsAccount.getSettlableBalance(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01修改资金账户-可用金额不能为空",false);
Assert.isNull(omsAccount.getAccruedSettledAmount(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01修改资金账户-累计结算金额不能为空",false);
Assert.isNull(omsAccount.getOperationInductionId(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01修改资金账户-操作人就职记录ID不能为空",false);
Assert.isNull(omsAccount.getOperateTime(),"D7执行统计下级并更新当前实体统计账户(公共)-7-1-01修改资金账户-操作时间不能为空",false);
      bOOLEAN = mOmsAccountService.updateFinanceAccount(omsAccount)/*vcase invoke 本地 method 方法调用;*/;



           }
//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    if(calculateSubtractionOfTwoNumServiceComRespDto !=null&&calculateSumOfMultipleNumServiceComRespDto !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(calculateSubtractionOfTwoNumServiceComRespDto!=null){
      receptionServiceReq.setAccountActualBalance(calculateSubtractionOfTwoNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1566831_1_62095
receptionServiceReq.setSettlableBalance(calculateSubtractionOfTwoNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1566832_1_62095
    }
if(calculateSumOfMultipleNumServiceComRespDto!=null){
      receptionServiceReq.setAccruedSettledAmount(calculateSumOfMultipleNumServiceComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1566833_1_62095
    }

    /*M7接收账户累积结算金额等出参[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getAccountActualBalance(),"D7执行统计下级并更新当前实体统计账户(公共)-M7接收账户累积结算金额等出参-账户余额不能为空",false);
Assert.isNull(receptionServiceReq.getSettlableBalance(),"D7执行统计下级并更新当前实体统计账户(公共)-M7接收账户累积结算金额等出参-可用金额不能为空",false);
Assert.isNull(receptionServiceReq.getAccruedSettledAmount(),"D7执行统计下级并更新当前实体统计账户(公共)-M7接收账户累积结算金额等出参-累计结算金额不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }
      }
else{
       //else  62090

//异常结束 62091
      throw new BizException("C00028","对不起，没有数据！！",false);
    }
ImplementStatSubAcctAndUpdateCurEntityAcctComRespDto retData = new ImplementStatSubAcctAndUpdateCurEntityAcctComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setAccountActualBalance(receptionServiceRes_1.getAccountActualBalance());//SimpleFieldAssign//sourceId:1566834_1
retData.setSettlableBalance(receptionServiceRes_1.getSettlableBalance());//SimpleFieldAssign//sourceId:1566835_1
retData.setAccruedSettledAmount(receptionServiceRes_1.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:1566836_1
    }




return retData;
  }
/**
   * D7执行单张牌资金账户更新(公共)[8553]
   * gen by moon at 3/8/2024, 3:49:13 AM
   */
  @Trace(operationName = "D7执行单张牌资金账户更新(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementSingleCardFundAccountPromotionRedisComRespDto implementSingleCardFundAccountPromotionRedisCom(ImplementSingleCardFundAccountPromotionRedisComReqDto reqDto){


      OmsAccount omsAccount_1 =null;
if((reqDto!= null&&  reqDto.getIsBudgetAccount() !=null && reqDto.getIsBudgetAccount().equals("TRUE"))) {
        //if(D7执行单张牌资金账户推Redis(公共).是否预算账户 等于 是)  62132

if((reqDto!= null&&  reqDto.getIsStatisticalAccount() !=null && reqDto.getIsStatisticalAccount().equals("TRUE"))) {
        //if(D7执行单张牌资金账户推Redis(公共).是否统计账户 等于 是)  62138

ImplementStatSubAcctAndUpdateCurAcctComRespDto implementStatSubAcctAndUpdateCurAcctComRespDto = null;
    ImplementStatSubAcctAndUpdateCurAcctComReqDto implementStatSubAcctAndUpdateCurAcctComReqDto=new ImplementStatSubAcctAndUpdateCurAcctComReqDto();
  if(reqDto!=null){
      implementStatSubAcctAndUpdateCurAcctComReqDto.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1567086_1_62159
implementStatSubAcctAndUpdateCurAcctComReqDto.setParentAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1567083_1_62159
implementStatSubAcctAndUpdateCurAcctComReqDto.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1567085_1_62159
implementStatSubAcctAndUpdateCurAcctComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1567092_1_62159
implementStatSubAcctAndUpdateCurAcctComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1567084_1_62159
    }

    /*D7执行统计下级并更新当前账户(公共)[8549]   */
    Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getAccountId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-当前账户ID不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getParentAccountContentCode(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-上级账户归属主体标识不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getIsBudgetAccount(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-是否预算账户不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getThemeContentId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-主题内容ID不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto.getSpaceId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-创建于空间ID不能为空",false);
      implementStatSubAcctAndUpdateCurAcctComRespDto = implementStatSubAcctAndUpdateCurAcctCom(implementStatSubAcctAndUpdateCurAcctComReqDto)/*vcase invoke 同服务,同domain*/;



      }
else if((reqDto!= null&&  reqDto.getIsStatisticalAccount() !=null && reqDto.getIsStatisticalAccount().equals("FALSE"))){
       //elseif(D7执行单张牌资金账户推Redis(公共).是否统计账户 等于 否)  62139

//processBranchName:正常结束 ,processBranchId:62165

    }
else{
       //else  62140

//异常结束 62141
      throw new BizException("C00028","对不起，没有数据！！",false);
    }
      }
else if((reqDto!= null&&  reqDto.getIsBudgetAccount() !=null && reqDto.getIsBudgetAccount().equals("FALSE"))){
       //elseif(D7执行单张牌资金账户推Redis(公共).是否预算账户 等于 否)  62133

if((reqDto!= null&&  reqDto.getIsStatisticalAccount() !=null && reqDto.getIsStatisticalAccount().equals("TRUE"))) {
        //if(D7执行单张牌资金账户推Redis(公共).是否统计账户 等于 是)  62143

if((reqDto!= null&&  reqDto.getIsOpenFundsArrival() !=null && reqDto.getIsOpenFundsArrival().equals("FALSE"))) {
        //if(D7执行单张牌资金账户推Redis(公共).是否开启资金到账 等于 否)  62148

ImplementStatSubAcctAndUpdateCurAcctComRespDto implementStatSubAcctAndUpdateCurAcctComRespDto_2 = null;
    ImplementStatSubAcctAndUpdateCurAcctComReqDto implementStatSubAcctAndUpdateCurAcctComReqDto_1=new ImplementStatSubAcctAndUpdateCurAcctComReqDto();
  if(reqDto!=null){
      implementStatSubAcctAndUpdateCurAcctComReqDto_1.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1567086_1_62151
implementStatSubAcctAndUpdateCurAcctComReqDto_1.setParentAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1567083_1_62151
implementStatSubAcctAndUpdateCurAcctComReqDto_1.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1567085_1_62151
implementStatSubAcctAndUpdateCurAcctComReqDto_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1567092_1_62151
implementStatSubAcctAndUpdateCurAcctComReqDto_1.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1567084_1_62151
    }

    /*D7执行统计下级并更新当前账户(公共)[8549]   */
    Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_1.getAccountId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-当前账户ID不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_1.getParentAccountContentCode(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-上级账户归属主体标识不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_1.getIsBudgetAccount(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-是否预算账户不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_1.getThemeContentId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-主题内容ID不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_1.getSpaceId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-创建于空间ID不能为空",false);
      implementStatSubAcctAndUpdateCurAcctComRespDto_2 = implementStatSubAcctAndUpdateCurAcctCom(implementStatSubAcctAndUpdateCurAcctComReqDto_1)/*vcase invoke 同服务,同domain*/;



      }
else if((reqDto!= null&&  reqDto.getIsOpenFundsArrival() !=null && reqDto.getIsOpenFundsArrival().equals("TRUE"))){
       //elseif(D7执行单张牌资金账户推Redis(公共).是否开启资金到账 等于 是)  62149

if((reqDto!= null&&  reqDto.getIsIncomingAccount() !=null && reqDto.getIsIncomingAccount().equals("FALSE"))) {
        //if(D7执行单张牌资金账户推Redis(公共).是否到账账户 等于 否)  62153

ImplementStatSubAcctAndUpdateCurAcctComRespDto implementStatSubAcctAndUpdateCurAcctComRespDto_3 = null;
    ImplementStatSubAcctAndUpdateCurAcctComReqDto implementStatSubAcctAndUpdateCurAcctComReqDto_2=new ImplementStatSubAcctAndUpdateCurAcctComReqDto();
  if(reqDto!=null){
      implementStatSubAcctAndUpdateCurAcctComReqDto_2.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1567086_1_62157
implementStatSubAcctAndUpdateCurAcctComReqDto_2.setParentAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1567083_1_62157
implementStatSubAcctAndUpdateCurAcctComReqDto_2.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1567085_1_62157
implementStatSubAcctAndUpdateCurAcctComReqDto_2.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1567092_1_62157
implementStatSubAcctAndUpdateCurAcctComReqDto_2.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1567084_1_62157
    }

    /*D7执行统计下级并更新当前账户(公共)[8549]   */
    Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_2.getAccountId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-当前账户ID不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_2.getParentAccountContentCode(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-上级账户归属主体标识不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_2.getIsBudgetAccount(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-是否预算账户不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_2.getThemeContentId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-主题内容ID不能为空",false);
Assert.isNull(implementStatSubAcctAndUpdateCurAcctComReqDto_2.getSpaceId(),"D7执行单张牌资金账户更新(公共)-D7执行统计下级并更新当前账户(公共)-创建于空间ID不能为空",false);
      implementStatSubAcctAndUpdateCurAcctComRespDto_3 = implementStatSubAcctAndUpdateCurAcctCom(implementStatSubAcctAndUpdateCurAcctComReqDto_2)/*vcase invoke 同服务,同domain*/;



      }
else if((reqDto!= null&&  reqDto.getIsIncomingAccount() !=null && reqDto.getIsIncomingAccount().equals("TRUE"))){
       //elseif(D7执行单张牌资金账户推Redis(公共).是否到账账户 等于 是)  62154

ImplementUpdateReceivedAccountAmountComRespDto implementUpdateReceivedAccountAmountComRespDto = null;
    ImplementUpdateReceivedAccountAmountComReqDto implementUpdateReceivedAccountAmountComReqDto=new ImplementUpdateReceivedAccountAmountComReqDto();
  if(reqDto!=null){
      implementUpdateReceivedAccountAmountComReqDto.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1567080_1_62158
implementUpdateReceivedAccountAmountComReqDto.setTotalBudgetAmount(reqDto.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1567149_1_62158
implementUpdateReceivedAccountAmountComReqDto.setAccountContentCode(reqDto.getAccountContentCode());//SimpleFieldAssign//sourceId:1567078_1_62158
implementUpdateReceivedAccountAmountComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1567081_1_62158
implementUpdateReceivedAccountAmountComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1567079_1_62158
    }

    /*D7执行判断更新到账账户资金金额(公共)[8547]   */
    Assert.isNull(implementUpdateReceivedAccountAmountComReqDto.getAccountId(),"D7执行单张牌资金账户更新(公共)-D7执行判断更新到账账户资金金额(公共)-账户ID不能为空",false);
Assert.isNull(implementUpdateReceivedAccountAmountComReqDto.getTotalBudgetAmount(),"D7执行单张牌资金账户更新(公共)-D7执行判断更新到账账户资金金额(公共)-当前账户总金额不能为空",false);
Assert.isNull(implementUpdateReceivedAccountAmountComReqDto.getAccountContentCode(),"D7执行单张牌资金账户更新(公共)-D7执行判断更新到账账户资金金额(公共)-关联归属主体标识不能为空",false);
Assert.isNull(implementUpdateReceivedAccountAmountComReqDto.getThemeContentId(),"D7执行单张牌资金账户更新(公共)-D7执行判断更新到账账户资金金额(公共)-主题内容ID不能为空",false);
Assert.isNull(implementUpdateReceivedAccountAmountComReqDto.getSpaceId(),"D7执行单张牌资金账户更新(公共)-D7执行判断更新到账账户资金金额(公共)-创建于空间ID不能为空",false);
      implementUpdateReceivedAccountAmountComRespDto = implementUpdateReceivedAccountAmountCom(implementUpdateReceivedAccountAmountComReqDto)/*vcase invoke 同服务,同domain*/;



    }
else{
       //else  62155

//异常结束 62156
      throw new BizException("C00028","对不起，没有数据！！",false);
    }
    }
      }
else if((reqDto!= null&&  reqDto.getIsStatisticalAccount() !=null && reqDto.getIsStatisticalAccount().equals("FALSE"))){
       //elseif(D7执行单张牌资金账户推Redis(公共).是否统计账户 等于 否)  62144

//processBranchName:正常结束 ,processBranchId:62166

    }
else{
       //else  62145

//异常结束 62146
      throw new BizException("C00028","对不起，没有数据！！",false);
    }
    }
else{
       //else  62134

//异常结束 62135
      throw new BizException("C00028","对不起，没有数据！！",false);
    }
//virtualUsage 7-1-01-查当前账户更新后详请  62168
      OmsAccount omsAccount = null;
    QueryFinanceAccountDetailComReq queryFinanceAccountDetailComReq=new QueryFinanceAccountDetailComReq();
  if(reqDto!=null){
      queryFinanceAccountDetailComReq.setAccountId(reqDto.getAccountId());//SimpleFieldAssign//sourceId:1567401_1_62168
queryFinanceAccountDetailComReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1567402_1_62168
    }

    /*7-1-01-查当前账户更新后详请[7677]   */
    Assert.isNull(queryFinanceAccountDetailComReq.getAccountId(),"D7执行单张牌资金账户更新(公共)-7-1-01-查当前账户更新后详请-账户ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReq.getSpaceId(),"D7执行单张牌资金账户更新(公共)-7-1-01-查当前账户更新后详请-创建于空间ID不能为空",false);
      omsAccount = mOmsAccountService.queryFinanceAccountDetailCom(queryFinanceAccountDetailComReq)/*vcase invoke 本地 method 方法调用;*/;


      omsAccount_1 = omsAccount;
ImplementSingleCardFundAccountPromotionRedisComRespDto retData = new ImplementSingleCardFundAccountPromotionRedisComRespDto();
  if(omsAccount_1!=null){
      retData.setTotalBudgetAmount(omsAccount_1.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1567410_1
retData.setAccountActualBalance(omsAccount_1.getAccountActualBalance());//SimpleFieldAssign//sourceId:1567411_1
retData.setSettlableBalance(omsAccount_1.getSettlableBalance());//SimpleFieldAssign//sourceId:1567412_1
retData.setUnSettlableBalance(omsAccount_1.getUnSettlableBalance());//SimpleFieldAssign//sourceId:1567413_1
retData.setAccruedSettledAmount(omsAccount_1.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:1567414_1
    }




return retData;
  }
/**
   * D7执行刷新全模板财务账户及标准数据快照(公共)[8554]
   * gen by moon at 3/25/2024, 4:32:50 PM
   */
  @Trace(operationName = "D7执行刷新全模板财务账户及标准数据快照(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementRefreshFullTemplateFinancialAccountAndStandardDataSnapshotComRespDto implementRefreshFullTemplateFinancialAccountAndStandardDataSnapshotCom(ImplementRefreshFullTemplateFinancialAccountAndStandardDataSnapshotComReqDto reqDto){


      if((reqDto!= null&&  reqDto.getIsLastCycle() !=null && reqDto.getIsLastCycle().equals("TRUE")&&reqDto!= null&& reqDto.getAccountId() != null )) {
        //if((D7执行刷新全模板财务账户及标准数据快照(公共).是否末级周期 等于 是 and D7执行刷新全模板财务账户及标准数据快照(公共).账户ID 值不等于空 ))  62247

     BottomUpdateEntityStatisticalAccountComRespDto bottomUpdateEntityStatisticalAccountComRespDto = null;
    BottomUpdateEntityStatisticalAccountComReqDto bottomUpdateEntityStatisticalAccountComReqDto=new BottomUpdateEntityStatisticalAccountComReqDto();
  if(reqDto!=null){
      bottomUpdateEntityStatisticalAccountComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1567577_1_62248
bottomUpdateEntityStatisticalAccountComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1567576_1_62248
bottomUpdateEntityStatisticalAccountComReqDto.setIsOpenFundsArrival(reqDto.getIsOpenFundsArrival());//SimpleFieldAssign//sourceId:1567578_1_62248
bottomUpdateEntityStatisticalAccountComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1567579_1_62248
    }

    /*D7刷新全模板财务账户并推Redis(公共)[8410]   */
    Assert.isNull(bottomUpdateEntityStatisticalAccountComReqDto.getDataObjectBatchCode(),"D7执行刷新全模板财务账户及标准数据快照(公共)-D7刷新全模板财务账户并推Redis(公共)-数据对象批次标识不能为空",false);
Assert.isNull(bottomUpdateEntityStatisticalAccountComReqDto.getEvaluationTemplateId(),"D7执行刷新全模板财务账户及标准数据快照(公共)-D7刷新全模板财务账户并推Redis(公共)-评价模板ID不能为空",false);
Assert.isNull(bottomUpdateEntityStatisticalAccountComReqDto.getIsOpenFundsArrival(),"D7执行刷新全模板财务账户及标准数据快照(公共)-D7刷新全模板财务账户并推Redis(公共)-是否开启资金到账不能为空",false);
Assert.isNull(bottomUpdateEntityStatisticalAccountComReqDto.getSpaceId(),"D7执行刷新全模板财务账户及标准数据快照(公共)-D7刷新全模板财务账户并推Redis(公共)-创建于空间ID不能为空",false);
      bottomUpdateEntityStatisticalAccountComRespDto = bottomUpdateEntityStatisticalAccountCom(bottomUpdateEntityStatisticalAccountComReqDto)/*vcase invoke 同服务,同domain*/;



      }
ImplementRefreshFullTemplateFinancialAccountAndStandardDataSnapshotComRespDto retData = new ImplementRefreshFullTemplateFinancialAccountAndStandardDataSnapshotComRespDto();





return retData;
  }
/**
   * D7获取当前内容账户信息(公共)[8562]
   * gen by moon at 5/14/2024, 6:52:40 PM
   */
  @Trace(operationName = "D7获取当前内容账户信息(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ObtainCurrentContentAccountInfoComRespDto obtainCurrentContentAccountInfoCom(ObtainCurrentContentAccountInfoComReqDto reqDto){


      QueryFinanceAccountDetailComRespDto queryFinanceAccountDetailComRespDto_1 =null;
QueryFinanceAccountDetailComRespDto queryFinanceAccountDetailComRespDto_3 =null;
ImplementReceiveFieldInputRespDto receptionServiceRes_2 =null;
//步骤0: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(reqDto!=null){
      receptionServiceReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1569378_1
receptionServiceReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1569379_1
receptionServiceReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1569462_1
    }

    /*M7接收入参字段[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getAccountObjectId(),"D7获取当前内容账户信息(公共)-M7接收入参字段-关联归属主体ID不能为空",false);
Assert.isNull(receptionServiceReq.getThemeContentId(),"D7获取当前内容账户信息(公共)-M7接收入参字段-主题内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getSpaceId(),"D7获取当前内容账户信息(公共)-M7接收入参字段-创建于空间ID不能为空",false);
      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);




//步骤1: D7-查询资金账户详情(公共) - queryFinanceAccountDetailCom
     QueryFinanceAccountDetailComRespDto queryFinanceAccountDetailComRespDto = null;
    QueryFinanceAccountDetailComReqDto queryFinanceAccountDetailComReqDto=new QueryFinanceAccountDetailComReqDto();
  queryFinanceAccountDetailComReqDto.setIsBudgetAccount("TRUE");//sourceId:1569464_1
queryFinanceAccountDetailComReqDto.setAccountObjectClass("CONTENT_TYPE");//sourceId:1569465_1
queryFinanceAccountDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1569468_1
if(reqDto!=null){
      queryFinanceAccountDetailComReqDto.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1569466_1
queryFinanceAccountDetailComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1569467_1
queryFinanceAccountDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1569469_1
    }

    /*D7查询当前内容预算账户详情(公共)[7681]   */
    Assert.isNull(queryFinanceAccountDetailComReqDto.getAccountObjectId(),"D7获取当前内容账户信息(公共)-D7查询当前内容预算账户详情(公共)-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getIsBudgetAccount(),"D7获取当前内容账户信息(公共)-D7查询当前内容预算账户详情(公共)-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getAccountObjectClass(),"D7获取当前内容账户信息(公共)-D7查询当前内容预算账户详情(公共)-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getThemeContentId(),"D7获取当前内容账户信息(公共)-D7查询当前内容预算账户详情(公共)-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getSubjectLifeCycle(),"D7获取当前内容账户信息(公共)-D7查询当前内容预算账户详情(公共)-主体生命周期不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto.getSpaceId(),"D7获取当前内容账户信息(公共)-D7查询当前内容预算账户详情(公共)-创建于空间ID不能为空",false);
      queryFinanceAccountDetailComRespDto = queryFinanceAccountDetailCom(queryFinanceAccountDetailComReqDto)/*vcase invoke 同服务,同domain*/;


      queryFinanceAccountDetailComRespDto_1 = queryFinanceAccountDetailComRespDto;

//步骤2: D7-查询资金账户详情(公共) - queryFinanceAccountDetailCom
     QueryFinanceAccountDetailComRespDto queryFinanceAccountDetailComRespDto_2 = null;
    QueryFinanceAccountDetailComReqDto queryFinanceAccountDetailComReqDto_1=new QueryFinanceAccountDetailComReqDto();
  queryFinanceAccountDetailComReqDto_1.setIsBudgetAccount("FALSE");//sourceId:1569456_1
queryFinanceAccountDetailComReqDto_1.setAccountObjectClass("CONTENT_TYPE");//sourceId:1569457_1
queryFinanceAccountDetailComReqDto_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1569460_1
if(reqDto!=null){
      queryFinanceAccountDetailComReqDto_1.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1569458_1
queryFinanceAccountDetailComReqDto_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1569459_1
queryFinanceAccountDetailComReqDto_1.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1569461_1
    }

    /*D7查询当前内容实体账户详情(公共)[7681]   */
    Assert.isNull(queryFinanceAccountDetailComReqDto_1.getAccountObjectId(),"D7获取当前内容账户信息(公共)-D7查询当前内容实体账户详情(公共)-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto_1.getIsBudgetAccount(),"D7获取当前内容账户信息(公共)-D7查询当前内容实体账户详情(公共)-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto_1.getAccountObjectClass(),"D7获取当前内容账户信息(公共)-D7查询当前内容实体账户详情(公共)-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto_1.getThemeContentId(),"D7获取当前内容账户信息(公共)-D7查询当前内容实体账户详情(公共)-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto_1.getSubjectLifeCycle(),"D7获取当前内容账户信息(公共)-D7查询当前内容实体账户详情(公共)-主体生命周期不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto_1.getSpaceId(),"D7获取当前内容账户信息(公共)-D7查询当前内容实体账户详情(公共)-创建于空间ID不能为空",false);
      queryFinanceAccountDetailComRespDto_2 = queryFinanceAccountDetailCom(queryFinanceAccountDetailComReqDto_1)/*vcase invoke 同服务,同domain*/;


      queryFinanceAccountDetailComRespDto_3 = queryFinanceAccountDetailComRespDto_2;

//步骤3: D7-查询资金账户详情(公共) - queryFinanceAccountDetailCom
     QueryFinanceAccountDetailComRespDto queryFinanceAccountDetailComRespDto_4 = null;
    if(queryFinanceAccountDetailComRespDto_2 !=null){
          QueryFinanceAccountDetailComReqDto queryFinanceAccountDetailComReqDto_2=new QueryFinanceAccountDetailComReqDto();
  queryFinanceAccountDetailComReqDto_2.setIsBudgetAccount("TRUE");//sourceId:1785811_1
queryFinanceAccountDetailComReqDto_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1785809_1
if(queryFinanceAccountDetailComRespDto_2!=null){
      queryFinanceAccountDetailComReqDto_2.setAccountContentCode(queryFinanceAccountDetailComRespDto_2.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1798186_1
    }
if(reqDto!=null){
      queryFinanceAccountDetailComReqDto_2.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1785808_1
    }

    /*D7查询当前内容扣减预算账户ID[7681]   */
    Assert.isNull(queryFinanceAccountDetailComReqDto_2.getAccountContentCode(),"D7获取当前内容账户信息(公共)-D7查询当前内容扣减预算账户ID-关联归属主体标识不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto_2.getIsBudgetAccount(),"D7获取当前内容账户信息(公共)-D7查询当前内容扣减预算账户ID-是否预算账户不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto_2.getThemeContentId(),"D7获取当前内容账户信息(公共)-D7查询当前内容扣减预算账户ID-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountDetailComReqDto_2.getSubjectLifeCycle(),"D7获取当前内容账户信息(公共)-D7查询当前内容扣减预算账户ID-主体生命周期不能为空",false);
      queryFinanceAccountDetailComRespDto_4 = queryFinanceAccountDetailCom(queryFinanceAccountDetailComReqDto_2)/*vcase invoke 同服务,同domain*/;



           }

//步骤4: M7-执行接收字段入参（财务） - implementReceiveFieldInput
     //ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes_1 = null;
    if(queryFinanceAccountDetailComRespDto_4 !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq_1=new ImplementReceiveFieldInputReqDto();
  if(queryFinanceAccountDetailComRespDto_4!=null){
      receptionServiceReq_1.setRelSubBudgetAccountId(queryFinanceAccountDetailComRespDto_4.getAccountId());//SimpleFieldAssign//sourceId:1785992_1
    }

    /*M7接收扣减账户ID[7656]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getRelSubBudgetAccountId(),"D7获取当前内容账户信息(公共)-M7接收扣减账户ID-扣减预算账户ID不能为空",false);
      receptionServiceRes_1 = nbFinance.implementReceiveFieldInput(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;
           }

ObtainCurrentContentAccountInfoComRespDto retData = new ObtainCurrentContentAccountInfoComRespDto();
  if(queryFinanceAccountDetailComRespDto_1!=null){
      retData.setBudgetAccountId(queryFinanceAccountDetailComRespDto_1.getAccountId());//SimpleFieldAssign//sourceId:1569471_1
    }
if(queryFinanceAccountDetailComRespDto_3!=null){
      retData.setEntityAccountId(queryFinanceAccountDetailComRespDto_3.getAccountId());//SimpleFieldAssign//sourceId:1569472_1
retData.setIsIncomingAccount(queryFinanceAccountDetailComRespDto_3.getIsIncomingAccount());//SimpleFieldAssign//sourceId:1569473_1
retData.setRelSubBudgetAccountCode(queryFinanceAccountDetailComRespDto_3.getRelSubBudgetAccountCode());//SimpleFieldAssign//sourceId:1569474_1
    }
if(receptionServiceRes_2!=null){
      retData.setRelSubBudgetAccountId(receptionServiceRes_2.getRelSubBudgetAccountId());//SimpleFieldAssign//sourceId:1785993_1
    }




return retData;
  }
/**
   * D7查询全模板资金账户列表(公共)[8564]
   * gen by moon at 3/8/2024, 4:17:28 PM
   */
  @Trace(operationName = "D7查询全模板资金账户列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryFullTemplateFundAccountListComRespDto queryFullTemplateFundAccountListCom(QueryFullTemplateFundAccountListComReqDto reqDto){


      List<OmsAccount> listOmsAccount_1 =new ArrayList<>();
//步骤0: 7-1-01查询资金账户列表 - queryFinanceAccountList
     List<OmsAccount> listOmsAccount =new ArrayList<>();
    QueryFinanceAccountListReq queryFinanceAccountListReq=new QueryFinanceAccountListReq();
  if(reqDto!=null){
      queryFinanceAccountListReq.setParentAccountContentCode(reqDto.getParentAccountContentCode());//SimpleFieldAssign//sourceId:1569655_1
queryFinanceAccountListReq.setIsBudgetAccount(reqDto.getIsBudgetAccount());//SimpleFieldAssign//sourceId:1569659_1
queryFinanceAccountListReq.setIsStatisticalAccount(reqDto.getIsStatisticalAccount());//SimpleFieldAssign//sourceId:1569660_1
queryFinanceAccountListReq.setIsIncomingAccount(reqDto.getIsIncomingAccount());//SimpleFieldAssign//sourceId:1569661_1
queryFinanceAccountListReq.setAccountStatus(reqDto.getAccountStatus());//SimpleFieldAssign//sourceId:1569656_1
queryFinanceAccountListReq.setIsEndStatus(reqDto.getIsEndStatus());//SimpleFieldAssign//sourceId:1569657_1
queryFinanceAccountListReq.setAccountTypeCode(reqDto.getAccountTypeCode());//SimpleFieldAssign//sourceId:1569658_1
queryFinanceAccountListReq.setAccountObjectClass(reqDto.getAccountObjectClass());//SimpleFieldAssign//sourceId:1569520_1
queryFinanceAccountListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1569521_1
queryFinanceAccountListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1569522_1
queryFinanceAccountListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1569523_1
    }

    /*7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌增内容redis）[8419]   */
    Assert.isNull(queryFinanceAccountListReq.getSpaceId(),"D7查询全模板资金账户列表(公共)-7-1-01查全模板资金账户列表（用于刷全模板资金账户发牌增内容redis）-创建于空间ID不能为空",false);
      listOmsAccount = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsAccount_1 = listOmsAccount;

QueryFullTemplateFundAccountListComRespDto retData = new QueryFullTemplateFundAccountListComRespDto();
  retData.setFinanceAccountList(listOmsAccount_1.stream().map(item -> BeanUtil.toBean(item, FinanceAccountDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1569525_1




return retData;
  }
/**
   * D7分析预算资金使用率(公共)[8938]
   * gen by moon at 3/31/2024, 2:00:45 PM
   */
  @Trace(operationName = "D7分析预算资金使用率(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AnalysisBudgetFundUsageRateComRespDto analysisBudgetFundUsageRateCom(AnalysisBudgetFundUsageRateComReqDto reqDto){


      ImplementReceiveFieldInputRespDto receptionServiceRes_1 =null;
if((reqDto!= null&&  reqDto.getIsBudgetAccount() !=null && reqDto.getIsBudgetAccount().equals("TRUE")&&reqDto!= null&& reqDto.getTotalBudgetAmount() != null &&reqDto!= null&& reqDto.getAccruedSettledAmount() != null )) {
        //if((D7分析预算资金使用率(公共).是否预算账户 等于 是 and D7分析预算资金使用率(公共).总金额 值不等于空  and D7分析预算资金使用率(公共).累计结算金额 值不等于空 ))  65712

CalculateDivisionOfTwoNumComRespDto calculateDivisionOfTwoNumComRespDto = null;
    CalculateDivisionOfTwoNumComReqDto calculateDivisionOfTwoNumComReqDto=new CalculateDivisionOfTwoNumComReqDto();
  calculateDivisionOfTwoNumComReqDto.setDecimalPointRules(Long.valueOf(10));//CUSTOM_CONVENTION//sourceId:1670221_1_65713
calculateDivisionOfTwoNumComReqDto.setDecimalDigitsLastRules("MALING");//sourceId:1670222_1_65713
if(reqDto!=null){
      calculateDivisionOfTwoNumComReqDto.setCalcPara1(reqDto.getAccruedSettledAmount());//SimpleFieldAssign//sourceId:1670218_1_65713
calculateDivisionOfTwoNumComReqDto.setCalcPara2(reqDto.getTotalBudgetAmount());//SimpleFieldAssign//sourceId:1670219_1_65713
    }

    /*D4累计结算金额÷总金额=使用占比（A)[4841]   */
    Assert.isNull(calculateDivisionOfTwoNumComReqDto.getCalcPara1(),"D7分析预算资金使用率(公共)-D4累计结算金额÷总金额=使用占比（A)-计算入参1不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getCalcPara2(),"D7分析预算资金使用率(公共)-D4累计结算金额÷总金额=使用占比（A)-计算入参2不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getDecimalPointRules(),"D7分析预算资金使用率(公共)-D4累计结算金额÷总金额=使用占比（A)-小数点规则不能为空",false);
Assert.isNull(calculateDivisionOfTwoNumComReqDto.getDecimalDigitsLastRules(),"D7分析预算资金使用率(公共)-D4累计结算金额÷总金额=使用占比（A)-小数最后一位规则不能为空",false);
      calculateDivisionOfTwoNumComRespDto = fwCalcCalculationRulesClient.calculateDivisionOfTwoNumCom(calculateDivisionOfTwoNumComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



CalculateMultiplyTwoValuesComRespDto calculateMultiplyTwoValuesComRespDto = null;
    if(calculateDivisionOfTwoNumComRespDto !=null){
          CalculateMultiplyTwoValuesComReqDto calculateMultiplyTwoValuesComReqDto=new CalculateMultiplyTwoValuesComReqDto();
  calculateMultiplyTwoValuesComReqDto.setComFloatField2(Double.valueOf("100"));//CUSTOM_CONVENTION//sourceId:1670224_1_65714
calculateMultiplyTwoValuesComReqDto.setDecimalPointRules(Long.valueOf(2));//CUSTOM_CONVENTION//sourceId:1670226_1_65714
calculateMultiplyTwoValuesComReqDto.setDecimalDigitsLastRules("ROUNDED");//sourceId:1670227_1_65714
if(calculateDivisionOfTwoNumComRespDto!=null){
      calculateMultiplyTwoValuesComReqDto.setComFloatField1(calculateDivisionOfTwoNumComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1670223_1_65714
    }

    /*D4-计算两个数值相乘服务(公共)[5443]   */
    Assert.isNull(calculateMultiplyTwoValuesComReqDto.getComFloatField1(),"D7分析预算资金使用率(公共)-D4-计算两个数值相乘服务(公共)-通用数值字段1（小数型）不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getComFloatField2(),"D7分析预算资金使用率(公共)-D4-计算两个数值相乘服务(公共)-通用数值字段2（小数型）不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getDecimalPointRules(),"D7分析预算资金使用率(公共)-D4-计算两个数值相乘服务(公共)-小数点规则不能为空",false);
Assert.isNull(calculateMultiplyTwoValuesComReqDto.getDecimalDigitsLastRules(),"D7分析预算资金使用率(公共)-D4-计算两个数值相乘服务(公共)-小数最后一位规则不能为空",false);
      calculateMultiplyTwoValuesComRespDto = fwCalcInterfaceModeClient.calculateMultiplyTwoValuesCom(calculateMultiplyTwoValuesComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//ModelCode: receptionService
        ImplementReceiveFieldInputRespDto receptionServiceRes = null;
    if(calculateMultiplyTwoValuesComRespDto !=null){
          ImplementReceiveFieldInputReqDto receptionServiceReq=new ImplementReceiveFieldInputReqDto();
  if(calculateMultiplyTwoValuesComRespDto!=null){
      receptionServiceReq.setFundUsageRate(calculateMultiplyTwoValuesComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1670410_1_65716
    }

    /*M7接收资金使用率出参[7656]  用于特殊方法接收上游入参。 */

      receptionServiceRes = nbFinance.implementReceiveFieldInput(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }
      }
AnalysisBudgetFundUsageRateComRespDto retData = new AnalysisBudgetFundUsageRateComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setFundUsageRate(receptionServiceRes_1.getFundUsageRate());//SimpleFieldAssign//sourceId:1670414_1
    }




return retData;
  }
/**
   * D7执行修正预算占比(公共)[9672]
   * gen by moon at 5/31/2024, 9:02:41 PM
   */
  @Trace(operationName = "D7执行修正预算占比(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementRevisedBudgetRatioComRespDto implementRevisedBudgetRatioCom(ImplementRevisedBudgetRatioComReqDto reqDto){


      AnalysisDyncAllocateDatasetLastRecordComRespDto analysisDyncAllocateDatasetLastRecordComRespDto_1 =null;
if((reqDto!= null&&  reqDto.getRevisedBudgetRatioTypeCode() !=null && reqDto.getRevisedBudgetRatioTypeCode().equals("BUDGET_SET"))) {
        //if(D7执行修正预算占比(公共).修正预算占比类型 等于 预算设置)  69408

     List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    QueryTargetBudgetSetListReq queryTargetBudgetSetListReq=new QueryTargetBudgetSetListReq();
  queryTargetBudgetSetListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1823705_1_69410
if(reqDto!=null){
      queryTargetBudgetSetListReq.setBudgetCycleModeTypeCode(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1823700_1_69410
queryTargetBudgetSetListReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1823703_1_69410
queryTargetBudgetSetListReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1823701_1_69410
queryTargetBudgetSetListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1823707_1_69410
    }

    /*7-1-07查询目标预算设置列表[8375]   */
    Assert.isNull(queryTargetBudgetSetListReq.getBudgetCycleModeTypeCode(),"D7执行修正预算占比(公共)-7-1-07查询目标预算设置列表-预算周期模型编码不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getSubjectLifeCycle(),"D7执行修正预算占比(公共)-7-1-07查询目标预算设置列表-主体生命周期不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getEvaluationTemplateId(),"D7执行修正预算占比(公共)-7-1-07查询目标预算设置列表-冗余评价模板ID不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetList(queryTargetBudgetSetListReq)/*vcase invoke 本地 method 方法调用;*/;



if((listOmsTargetCostset!= null&&  listOmsTargetCostset !=null && listOmsTargetCostset.size()>1)) {
        //if(7-1-07查询目标预算设置列表.目标预算设置列表数据集条数 大于 1)  69411

     AnalysisDyncAllocateDatasetLastRecordComRespDto analysisDyncAllocateDatasetLastRecordComRespDto = null;
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          AnalysisDyncAllocateDatasetLastRecordComReqDto analysisDyncAllocateDatasetLastRecordComReqDto=new AnalysisDyncAllocateDatasetLastRecordComReqDto();
  analysisDyncAllocateDatasetLastRecordComReqDto.setComFloatField(Double.valueOf("100"));//CUSTOM_CONVENTION//sourceId:1824028_1_69412
if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      analysisDyncAllocateDatasetLastRecordComReqDto.setBusinessDataSetList(//objList-to-objLists
        listOmsTargetCostset.stream().map(item -> {
      BusinessDataSetDto elm = new BusinessDataSetDto();
      elm.setCustomField1(item.getTargetCostSetId());//SimpleFieldAssign//sourceId:366702_2_69412
elm.setComFloatField1(item.getBudgetRate());//SimpleFieldAssign//sourceId:366703_2_69412
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1824031_1_69412
    }
if(reqDto!=null){
      analysisDyncAllocateDatasetLastRecordComReqDto.setDecimalPointRules(reqDto.getDecimalPointRules());//SimpleFieldAssign//sourceId:1824029_1_69412
analysisDyncAllocateDatasetLastRecordComReqDto.setDecimalDigitsLastRules(reqDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1824030_1_69412
    }

    /*D4动态分配数据集最后一条记录值(公共)[9671]   */
    Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto.getComFloatField(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-通用数值字段（小数型）不能为空",false);
Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto.getDecimalPointRules(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-小数点规则不能为空",false);
Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto.getDecimalDigitsLastRules(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-小数最后一位规则不能为空",false);
      analysisDyncAllocateDatasetLastRecordComRespDto = fwCalcBusinessAtomClient.analysisDyncAllocateDatasetLastRecordCom(analysisDyncAllocateDatasetLastRecordComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      analysisDyncAllocateDatasetLastRecordComRespDto_1 = analysisDyncAllocateDatasetLastRecordComRespDto;
           }
     boolean bOOLEAN ;
    if(analysisDyncAllocateDatasetLastRecordComRespDto !=null){
          OmsTargetCostset omsTargetCostset=new OmsTargetCostset();
  if(analysisDyncAllocateDatasetLastRecordComRespDto!=null){
      omsTargetCostset.setTargetCostSetId(analysisDyncAllocateDatasetLastRecordComRespDto.getCommPrimaryKey());//SimpleFieldAssign//sourceId:1823709_1_69413
omsTargetCostset.setBudgetRate(analysisDyncAllocateDatasetLastRecordComRespDto.getCalcResult());//SimpleFieldAssign//sourceId:1823711_1_69413
    }

    /*7-1-07修改目标预算设置[8383]   */
    Assert.isNull(omsTargetCostset.getTargetCostSetId(),"D7执行修正预算占比(公共)-7-1-07修改目标预算设置-目标预算设置ID不能为空",false);
Assert.isNull(omsTargetCostset.getBudgetRate(),"D7执行修正预算占比(公共)-7-1-07修改目标预算设置-预算金额占比不能为空",false);
      bOOLEAN = mOmsTargetCostsetService.updateTargetBudgetSet(omsTargetCostset)/*vcase invoke 本地 method 方法调用;*/;



           }
      }
      }
else if((reqDto!= null&&  reqDto.getRevisedBudgetRatioTypeCode() !=null && reqDto.getRevisedBudgetRatioTypeCode().equals("BUDGET_REDIS_SET"))){
       //elseif(D7执行修正预算占比(公共).修正预算占比类型 等于 预算Redis设置)  69409

QueryTargetBudgetSetPersonalPreRefListComRespDto queryTargetBudgetSetPersonalPreRefListComRespDto = null;
    QueryTargetBudgetSetPersonalPreRefListComReqDto queryTargetBudgetSetPersonalPreRefListComReqDto=new QueryTargetBudgetSetPersonalPreRefListComReqDto();
  queryTargetBudgetSetPersonalPreRefListComReqDto.setBusinessDataObject("TARGET_BUDGET_SET");//sourceId:1830725_1_69414
if(reqDto!=null){
      queryTargetBudgetSetPersonalPreRefListComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1830726_1_69414
queryTargetBudgetSetPersonalPreRefListComReqDto.setRefCustomFieldValue1(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1830729_1_69414
queryTargetBudgetSetPersonalPreRefListComReqDto.setRefCustomFieldValue4(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1830731_1_69414
queryTargetBudgetSetPersonalPreRefListComReqDto.setRefCustomFieldValue2(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1830853_1_69414
    }

    /*D2-查询目标预算设置个性准备部分数据列表（入参查redis）[8445]   */
    Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getBusinessDataObject(),"D7执行修正预算占比(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-业务数据对象不能为空",false);
Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getDataObjectBatchCode(),"D7执行修正预算占比(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-数据对象批次标识不能为空",false);
Assert.isNull(queryTargetBudgetSetPersonalPreRefListComReqDto.getRefCustomFieldValue1(),"D7执行修正预算占比(公共)-D2-查询目标预算设置个性准备部分数据列表（入参查redis）-预算周期模型编码不能为空",false);
      queryTargetBudgetSetPersonalPreRefListComRespDto = fwCompFinanceClient.queryTargetBudgetSetPersonalPreRefListCom(queryTargetBudgetSetPersonalPreRefListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((queryTargetBudgetSetPersonalPreRefListComRespDto!= null&&  queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList() !=null && queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList().size()>1)) {
        //if(D2-查询目标预算设置个性准备部分数据列表（入参查redis）.出参redis业务数据对象列表数据集条数 大于 1)  69415

if((reqDto!= null&&  reqDto.getBudgetCycleModeTypeCode() !=null && reqDto.getBudgetCycleModeTypeCode().equals("CAPITAL_SOURCE"))) {
        //if(D7执行修正预算占比(公共).预算周期模型编码 等于 资金来源周期)  69419

AnalysisDyncAllocateDatasetLastRecordComRespDto analysisDyncAllocateDatasetLastRecordComRespDto_2 = null;
    if(queryTargetBudgetSetPersonalPreRefListComRespDto !=null){
          AnalysisDyncAllocateDatasetLastRecordComReqDto analysisDyncAllocateDatasetLastRecordComReqDto_1=new AnalysisDyncAllocateDatasetLastRecordComReqDto();
  analysisDyncAllocateDatasetLastRecordComReqDto_1.setComFloatField(Double.valueOf("100"));//CUSTOM_CONVENTION//sourceId:1824028_1_69421
if(queryTargetBudgetSetPersonalPreRefListComRespDto!= null&&  queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList() !=null&& !CollectionUtil.isEmpty(queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList())){
      analysisDyncAllocateDatasetLastRecordComReqDto_1.setBusinessDataSetList(//objList-to-objLists
        queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList().stream().map(item -> {
      BusinessDataSetDto elm = new BusinessDataSetDto();
      if(item!=null){
      elm.setCustomField1(item.getCapitalSourceId()!=null?String.valueOf(item.getCapitalSourceId()):"");//SimpleFieldAssign//sourceId:366702_2_69421
elm.setComFloatField1(item.getBudgetRate()!=null?Double.valueOf(item.getBudgetRate()):null);//SimpleFieldAssign//sourceId:366703_2_69421
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1824031_1_69421
    }
if(reqDto!=null){
      analysisDyncAllocateDatasetLastRecordComReqDto_1.setDecimalPointRules(reqDto.getDecimalPointRules());//SimpleFieldAssign//sourceId:1824029_1_69421
analysisDyncAllocateDatasetLastRecordComReqDto_1.setDecimalDigitsLastRules(reqDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1824030_1_69421
    }

    /*D4动态分配数据集最后一条记录值(公共)[9671]   */
    Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto_1.getComFloatField(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-通用数值字段（小数型）不能为空",false);
Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto_1.getDecimalPointRules(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-小数点规则不能为空",false);
Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto_1.getDecimalDigitsLastRules(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-小数最后一位规则不能为空",false);
      analysisDyncAllocateDatasetLastRecordComRespDto_2 = fwCalcBusinessAtomClient.analysisDyncAllocateDatasetLastRecordCom(analysisDyncAllocateDatasetLastRecordComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


      analysisDyncAllocateDatasetLastRecordComRespDto_1 = analysisDyncAllocateDatasetLastRecordComRespDto_2;
           }
UpdateTargetBudgetSetRedisComRespDto updateTargetBudgetSetRedisComRespDto = null;
    if(analysisDyncAllocateDatasetLastRecordComRespDto_2 !=null){
          UpdateTargetBudgetSetRedisComReqDto updateTargetBudgetSetRedisComReqDto=new UpdateTargetBudgetSetRedisComReqDto();
  if(reqDto!=null){
      updateTargetBudgetSetRedisComReqDto.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1831218_1_69423
updateTargetBudgetSetRedisComReqDto.setRefCustomFieldValue1(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1831219_1_69423
      updateTargetBudgetSetRedisComReqDto.setRefCustomFieldValue2(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1831220_1_69423

  }

if(analysisDyncAllocateDatasetLastRecordComRespDto_2!=null){
      updateTargetBudgetSetRedisComReqDto.setRefCustomFieldValue3(analysisDyncAllocateDatasetLastRecordComRespDto_2.getCommPrimaryKey());//SimpleFieldAssign//sourceId:1831221_1_69423
updateTargetBudgetSetRedisComReqDto.setCustomFieldValue1(analysisDyncAllocateDatasetLastRecordComRespDto_2.getCalcResult()!=null?String.valueOf(analysisDyncAllocateDatasetLastRecordComRespDto_2.getCalcResult()):"");//SimpleFieldAssign//sourceId:1831222_1_69423
    }

    /*D2修改目标预算设置(redis)[9692]   */
Assert.isNull(updateTargetBudgetSetRedisComReqDto.getRefCustomFieldValue1(),"D7执行修正预算占比(公共)-D2修改目标预算设置(redis)-预算周期模型编码不能为空",false);
Assert.isNull(updateTargetBudgetSetRedisComReqDto.getRefCustomFieldValue2(),"D7执行修正预算占比(公共)-D2修改目标预算设置(redis)-被评对象目标周期ID不能为空",false);
Assert.isNull(updateTargetBudgetSetRedisComReqDto.getCustomFieldValue1(),"D7执行修正预算占比(公共)-D2修改目标预算设置(redis)-预算金额占比不能为空",false);
      updateTargetBudgetSetRedisComRespDto = fwCompFinanceClient.updateTargetBudgetSetRedisCom(updateTargetBudgetSetRedisComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
      }
else if((reqDto!= null&&  reqDto.getBudgetCycleModeTypeCode() !=null && reqDto.getBudgetCycleModeTypeCode().equals("SUB_CYCLE"))){
       //elseif(D7执行修正预算占比(公共).预算周期模型编码 等于 子周期)  69420

AnalysisDyncAllocateDatasetLastRecordComRespDto analysisDyncAllocateDatasetLastRecordComRespDto_3 = null;
    if(queryTargetBudgetSetPersonalPreRefListComRespDto !=null){
          AnalysisDyncAllocateDatasetLastRecordComReqDto analysisDyncAllocateDatasetLastRecordComReqDto_2=new AnalysisDyncAllocateDatasetLastRecordComReqDto();
  analysisDyncAllocateDatasetLastRecordComReqDto_2.setComFloatField(Double.valueOf("100"));//CUSTOM_CONVENTION//sourceId:1824028_1_69422
if(queryTargetBudgetSetPersonalPreRefListComRespDto!= null&&  queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList() !=null&& !CollectionUtil.isEmpty(queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList())){
      analysisDyncAllocateDatasetLastRecordComReqDto_2.setBusinessDataSetList(//objList-to-objLists
        queryTargetBudgetSetPersonalPreRefListComRespDto.getRedisBusinessDataResList().stream().map(item -> {
      BusinessDataSetDto elm = new BusinessDataSetDto();
      if(item!=null){
      elm.setCustomField1(item.getEvaObjTargetCycleId()!=null?String.valueOf(item.getEvaObjTargetCycleId()):"");//SimpleFieldAssign//sourceId:366702_2_69422
elm.setComFloatField1(item.getBudgetRate()!=null?Double.valueOf(item.getBudgetRate()):null);//SimpleFieldAssign//sourceId:366703_2_69422
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1824031_1_69422
    }
if(reqDto!=null){
      analysisDyncAllocateDatasetLastRecordComReqDto_2.setDecimalPointRules(reqDto.getDecimalPointRules());//SimpleFieldAssign//sourceId:1824029_1_69422
analysisDyncAllocateDatasetLastRecordComReqDto_2.setDecimalDigitsLastRules(reqDto.getDecimalDigitsLastRules());//SimpleFieldAssign//sourceId:1824030_1_69422
    }

    /*D4动态分配数据集最后一条记录值(公共)[9671]   */
    Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto_2.getComFloatField(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-通用数值字段（小数型）不能为空",false);
Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto_2.getDecimalPointRules(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-小数点规则不能为空",false);
Assert.isNull(analysisDyncAllocateDatasetLastRecordComReqDto_2.getDecimalDigitsLastRules(),"D7执行修正预算占比(公共)-D4动态分配数据集最后一条记录值(公共)-小数最后一位规则不能为空",false);
      analysisDyncAllocateDatasetLastRecordComRespDto_3 = fwCalcBusinessAtomClient.analysisDyncAllocateDatasetLastRecordCom(analysisDyncAllocateDatasetLastRecordComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;


      analysisDyncAllocateDatasetLastRecordComRespDto_1 = analysisDyncAllocateDatasetLastRecordComRespDto_3;
           }
UpdateTargetBudgetSetRedisComRespDto updateTargetBudgetSetRedisComRespDto_1 = null;
    if(analysisDyncAllocateDatasetLastRecordComRespDto_3 !=null){
          UpdateTargetBudgetSetRedisComReqDto updateTargetBudgetSetRedisComReqDto_1=new UpdateTargetBudgetSetRedisComReqDto();
  if(reqDto!=null){
      updateTargetBudgetSetRedisComReqDto_1.setDataObjectBatchCode(reqDto.getDataObjectBatchCode());//SimpleFieldAssign//sourceId:1831218_1_69424
updateTargetBudgetSetRedisComReqDto_1.setRefCustomFieldValue1(reqDto.getBudgetCycleModeTypeCode());//SimpleFieldAssign//sourceId:1831219_1_69424
    }
if(analysisDyncAllocateDatasetLastRecordComRespDto_3!=null){
      updateTargetBudgetSetRedisComReqDto_1.setRefCustomFieldValue2(analysisDyncAllocateDatasetLastRecordComRespDto_3.getCommPrimaryKey());//SimpleFieldAssign//sourceId:1831220_1_69424
updateTargetBudgetSetRedisComReqDto_1.setCustomFieldValue1(analysisDyncAllocateDatasetLastRecordComRespDto_3.getCalcResult()!=null?String.valueOf(analysisDyncAllocateDatasetLastRecordComRespDto_3.getCalcResult()):"");//SimpleFieldAssign//sourceId:1831222_1_69424
    }

    /*D2修改目标预算设置(redis)[9692]   */
Assert.isNull(updateTargetBudgetSetRedisComReqDto_1.getRefCustomFieldValue1(),"D7执行修正预算占比(公共)-D2修改目标预算设置(redis)-预算周期模型编码不能为空",false);
Assert.isNull(updateTargetBudgetSetRedisComReqDto_1.getRefCustomFieldValue2(),"D7执行修正预算占比(公共)-D2修改目标预算设置(redis)-被评对象目标周期ID不能为空",false);
Assert.isNull(updateTargetBudgetSetRedisComReqDto_1.getCustomFieldValue1(),"D7执行修正预算占比(公共)-D2修改目标预算设置(redis)-预算金额占比不能为空",false);
      updateTargetBudgetSetRedisComRespDto_1 = fwCompFinanceClient.updateTargetBudgetSetRedisCom(updateTargetBudgetSetRedisComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
    }
           }
      }
ImplementRevisedBudgetRatioComRespDto retData = new ImplementRevisedBudgetRatioComRespDto();
  if(analysisDyncAllocateDatasetLastRecordComRespDto_1!=null){
      retData.setCommPrimaryKey(analysisDyncAllocateDatasetLastRecordComRespDto_1.getCommPrimaryKey());//SimpleFieldAssign//sourceId:1830654_1
retData.setCalcResult(analysisDyncAllocateDatasetLastRecordComRespDto_1.getCalcResult());//SimpleFieldAssign//sourceId:1830655_1
    }




return retData;
  }
/**
   * D7批量存档目标内容预算设置(公共)[9765]
   * gen by moon at 6/9/2024, 1:20:15 AM
   */
  @Trace(operationName = "D7批量存档目标内容预算设置(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public BatchArchiveTargetContentSetBudgetComRespDto batchArchiveTargetContentSetBudgetCom(BatchArchiveTargetContentSetBudgetComReqDto reqDto){


      //步骤0: 7-1-07查询目标预算设置列表 - queryTargetBudgetSetList
     List<OmsTargetCostset> listOmsTargetCostset =new ArrayList<>();
    QueryTargetBudgetSetListReq queryTargetBudgetSetListReq=new QueryTargetBudgetSetListReq();
  if(reqDto!=null){
      queryTargetBudgetSetListReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1857742_1
queryTargetBudgetSetListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1857746_1
    }

    /*7-1-07查询目标预算设置列表[8375]   */
    Assert.isNull(queryTargetBudgetSetListReq.getTargetCycleContentId(),"D7批量存档目标内容预算设置(公共)-7-1-07查询目标预算设置列表-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetBudgetSetListReq.getEvaluationTemplateId(),"D7批量存档目标内容预算设置(公共)-7-1-07查询目标预算设置列表-冗余评价模板ID不能为空",false);
      listOmsTargetCostset = mOmsTargetCostsetService.queryTargetBudgetSetList(queryTargetBudgetSetListReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤1: 7-1-07批量改目标预算设置 - batchUpdateTargetBudgetSet
     boolean bOOLEAN ;
    if(listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&& listOmsTargetCostset.size()>0 ){
          List<OmsTargetCostset> listOmsTargetCostset_2=new ArrayList<>();
  if(listOmsTargetCostset!= null&& !CollectionUtil.isEmpty(listOmsTargetCostset)&&  listOmsTargetCostset !=null&& !CollectionUtil.isEmpty(listOmsTargetCostset)){
      listOmsTargetCostset_2 = listOmsTargetCostset.stream().map(item -> {
        OmsTargetCostset elm =BeanUtil.toBean(item, OmsTargetCostset.class);
        elm.setSubjectLifeCycle("ARCHIVING");
elm.setIsArchive("TRUE");
if(elm!=null && elm.getSubjectLifeCycle()!=null && elm.getSubjectLifeCycle().equals("ARCHIVING")) {
              elm.setArchiveInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//ARCHIVE_CURRENT_INDUCTIONID
          }
if(elm!=null && elm.getSubjectLifeCycle()!=null && elm.getSubjectLifeCycle().equals("ARCHIVING")) {
              elm.setArchiveTime(CommonFunctionHelper.getCurrentTime());//HISTORICAL_ARCHIVING
          }

        return elm;
      }).collect(Collectors.toList());//objList-to-objLists//sourceId:1857790_1
    }

    /*7-1-07批量改目标预算设置[9766]   */

      bOOLEAN = mOmsTargetCostsetService.batchUpdateTargetBudgetSet(listOmsTargetCostset_2)/*vcase invoke 本地 method 方法调用;*/;



           }

BatchArchiveTargetContentSetBudgetComRespDto retData = new BatchArchiveTargetContentSetBudgetComRespDto();





return retData;
  }
/**
   * D7存档账户账单处理(公共)[9768]
   * gen by moon at 6/9/2024, 1:20:30 AM
   */
  @Trace(operationName = "D7存档账户账单处理(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ArchiveBillAndAccountComRespDto archiveBillAndAccountCom(ArchiveBillAndAccountComReqDto reqDto){


      //步骤0: 7-1-01查询资金账户列表 - queryFinanceAccountList
     List<OmsAccount> listOmsAccount =new ArrayList<>();
    QueryFinanceAccountListReq queryFinanceAccountListReq=new QueryFinanceAccountListReq();
  if(reqDto!=null){
      queryFinanceAccountListReq.setAccountObjectId(reqDto.getAccountObjectId());//SimpleFieldAssign//sourceId:1857867_1
queryFinanceAccountListReq.setAccountObjectClass(reqDto.getAccountObjectClass());//SimpleFieldAssign//sourceId:1857868_1
queryFinanceAccountListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1857869_1
queryFinanceAccountListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1857870_1
    }

    /*7-1-01查询资金账户列表[8419]   */
    Assert.isNull(queryFinanceAccountListReq.getAccountObjectId(),"D7存档账户账单处理(公共)-7-1-01查询资金账户列表-关联归属主体ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getAccountObjectClass(),"D7存档账户账单处理(公共)-7-1-01查询资金账户列表-账户关联主体分类类型不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getThemeContentId(),"D7存档账户账单处理(公共)-7-1-01查询资金账户列表-主题内容ID不能为空",false);
Assert.isNull(queryFinanceAccountListReq.getSpaceId(),"D7存档账户账单处理(公共)-7-1-01查询资金账户列表-创建于空间ID不能为空",false);
      listOmsAccount = mOmsAccountService.queryFinanceAccountList(queryFinanceAccountListReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤1: 7-1-01批量改资金账户 - batchUpdateFinanceAccount
     boolean bOOLEAN ;
    if(listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)&& listOmsAccount.size()>0 ){
          List<OmsAccount> listOmsAccount_2=new ArrayList<>();
  if(listOmsAccount!= null&& !CollectionUtil.isEmpty(listOmsAccount)&&  listOmsAccount !=null&& !CollectionUtil.isEmpty(listOmsAccount)){
      listOmsAccount_2 = listOmsAccount.stream().map(item -> {
        OmsAccount elm =BeanUtil.toBean(item, OmsAccount.class);
        elm.setSubjectLifeCycle("ARCHIVING");
elm.setIsArchive("TRUE");
if(elm!=null && elm.getSubjectLifeCycle()!=null && elm.getSubjectLifeCycle().equals("ARCHIVING")) {
              elm.setArchiveInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//ARCHIVE_CURRENT_INDUCTIONID
          }
if(elm!=null && elm.getSubjectLifeCycle()!=null && elm.getSubjectLifeCycle().equals("ARCHIVING")) {
              elm.setArchiveTime(CommonFunctionHelper.getCurrentTime());//HISTORICAL_ARCHIVING
          }

        return elm;
      }).collect(Collectors.toList());//objList-to-objLists//sourceId:1857876_1
    }

    /*7-1-01批量改资金账户[9769]   */

      bOOLEAN = mOmsAccountService.batchUpdateFinanceAccount(listOmsAccount_2)/*vcase invoke 本地 method 方法调用;*/;



           }

ArchiveBillAndAccountComRespDto retData = new ArchiveBillAndAccountComRespDto();





return retData;
  }
  //
}
